From tomcat-user-return-48343-qmlist-jakarta-archive-tomcat-user=jakarta.apache.org@jakarta.apache.org Sat Jan 11 15:04:41 2003 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 40992 invoked from network); 11 Jan 2003 15:04:40 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jan 2003 15:04:40 -0000 Received: (qmail 2768 invoked by uid 97); 11 Jan 2003 15:05:41 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 2706 invoked by uid 97); 11 Jan 2003 15:05:40 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2694 invoked by uid 98); 11 Jan 2003 15:05:40 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Content-Type: text/plain; charset="windows-1251" From: Paul Yunusov Reply-To: pyunusov@rogers.com To: "Tomcat Users List" Subject: Re: HTTP Status 404 with Tomcat 4.1.18 Date: Sat, 11 Jan 2003 10:03:08 -0500 User-Agent: KMail/1.4.1 References: <3E1FC4F7.6C21629C@tifr.res.in> <3E201860.9A57B9C@tifr.res.in> In-Reply-To: <3E201860.9A57B9C@tifr.res.in> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200301111003.08041.pyunusov@rogers.com> X-Authentication-Info: Submitted using SMTP AUTH PLAIN at fep01-mail.bloor.is.net.cable.rogers.com from [24.157.66.141] using ID at Sat, 11 Jan 2003 10:03:41 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Saturday 11 January 2003 08:13 am, Nihita Goel wrote: > I have added the Context information in server.xml as > > > > > > I checked the localhost log file and I can see messages > Webapploader[/myapp]:Deploying class repositories to work directory > $CATALINA_HOME/work/Standalone/localhost/myapp > WebappLoader[/myapp]: Deploy class files /WEB-INF/classes to > $CATALINA_HOME/webapps/myapp/WEB-INF/classes > StandardManager[/myapp]: Seeding random number generator class > java.security.SecureRandom > StandardManager[/myapp]: Seeding of Random Number generator is complete > StandardManager[/myapp:default]: Loading servlet default > StandardManager[/myapp:invoker]:Loading container servlet invoker > > My class files are present in $CATALINA_HOME/Webapps/myapp/WEB-INF/classes > directory and the web.xml is present in the WEB-INF directory.... > > I still get the error HTTP Status 404 with description "the requested > resource "/myapp/servlet/TestServlet" is not available. > > NG You don't need to add a context for your webapp to server.xml. Add this to your webapp's web.xml: AnyNameWorks TestServlet AnyNameWorks /AnotherNameWorksHere Then try accessing the servlet with this URL: http://localhost:8080/AnotherNameWorksHere Tomcat requires you to map all your resources like servlets to URL patterns. Before Tomcat 4.1.12 a special servlet called Invoker was automatically mapped to /servlet/* pattern and it invoked your servlets for you. You can find commented out lines related to that in the server's web.xml in the conf directory. If you want more info search this list and check out conf/web.xml. Paul -- To unsubscribe, e-mail: For additional commands, e-mail: