Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 27980 invoked by uid 500); 20 Aug 2001 14:15:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 27973 invoked from network); 20 Aug 2001 14:15:53 -0000 Received: from rm-rstar.sfu.ca (root@142.58.120.21) by h31.sny.collab.net with SMTP; 20 Aug 2001 14:15:53 -0000 Received: from cultus.sfu.ca (cultus.sfu.ca [142.58.101.5]) by rm-rstar.sfu.ca (8.10.1/8.10.1/SFU-5.0H) with ESMTP id f7KEFge27963 for ; Mon, 20 Aug 2001 07:15:43 -0700 (PDT) Message-Id: <200108201415.f7KEFge27963@rm-rstar.sfu.ca> Content-Type: text/plain Content-Disposition: inline To: tomcat-user@jakarta.apache.org From: "Rob S." Organization: Student X-Sender: rslifka@popserver.sfu.ca Mime-Version: 1.0 Reply-To: "Rob S." Date: Mon, 20 Aug 2001 7:15:42 PDT X-Mailer: SFUwebmail 2.70 Subject: Re: FW: Error when reading a servlet X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > I have given something like this within my server.xml file > docBase="/jakarta-tomcat-3.2.1/webapps/com/health/wls/servlets" > crossContext="true" debug="0" reloadable="true"> The "docBase" is the root of your web application, where there will be a WEB-INF subdirectory. > -> here the main reason why i have given docBase="/jaka......" is coz if I > give in as docBase="/webapps/com...." I get a error something like this > > What I want you to note is it's looking for files within c:/webapps... but > actually I have dir structure as c:/jakara-tomcat-3.2.1/webapps.... Right, because you're specifying the docBase as "/webapps" so of course it will look for files in C:/webapps =) > ->Please tell me if I give in docbase as "webapps/health" how will it know > the exact servlets path... which is within webapps/com/health/wls/servlets It knows because the web.xml knows to look for class files in WEB-INF/lib and WEB-INF/classes. You should place your servlet class in WEB-INF/classes under your docBase. > Now in the my url address if I give ~localhost:8080/health/HealthLogin it > gives me a error saying page cannot be found. As far as I know "~localhost" isn't the same as "localhost". This will definitely be a problem. It is on my Win2k machine. Have you read anything about servlets and web applications yet? Head to http://jakarta.apache.org/tomcat/index.html and click on the appropriate documentation bundle for whatever version of Tomcat you're using. - r