Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 92490 invoked from network); 3 Sep 2003 19:20:44 -0000 Received: from unknown (HELO relay.pair.com) (209.68.1.20) by daedalus.apache.org with SMTP; 3 Sep 2003 19:20:44 -0000 Received: (qmail 74742 invoked from network); 3 Sep 2003 19:20:45 -0000 Received: from unknown (HELO johnturner.com) (207.86.123.243) by relay.pair.com with SMTP; 3 Sep 2003 19:20:45 -0000 X-pair-Authenticated: 207.86.123.243 Message-ID: <3F563F0C.7070905@johnturner.com> Date: Wed, 03 Sep 2003 15:20:44 -0400 From: John Turner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: adding a servlet to my webapp References: <3F56329F.6030009@global-matrix.com> <3F563824.50202@johnturner.com> <3F563AC3.3000603@global-matrix.com> In-Reply-To: <3F563AC3.3000603@global-matrix.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yes, exactly. The way you have it now is trying to use the Invoker servlet. You are missing the servlet mapping in web.xml, as explained in option #3 of this post which is linked from the FAQ section: http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2 John Jason Jesso wrote: > But, I don't want to use the "invoker". I want to be able to specify > the servlet itself in web.xml. > > The invoker is "evil" according to the link you gave me. > > > > John Turner wrote: > >> >> You have to map your servlet in web.xml. >> >> FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker >> >> John >> >> Jason Jesso wrote: >> >>> When I go to my servlet I get "HTTP Status 404 - >>> /jasonTest/servlet/foo/HelloWorld" >>> >>> The url is: >>> http://neptune/jasonTest/servlet/foo/HelloWorld >>> >>> My config is as follows: (What is wrong here??) >>> >>> I have a webapp defined in server.xml as >>> >>> ======================= >>> >> docBase="jasonTest" >>> debug="0" >>> reloadable="true" >>> crossContext="true"> >>> >> prefix="jasonTest" suffix=".out"/> >>> >>> ======================= >>> >>> >>> My webapp directory structure looks like: >>> ======================= >>> neptune:root> ls -lR jasonTest/ >>> total 16 >>> drwxr-sr-x 4 root software 512 Sep 03 10:18 WEB-INF >>> -rw-r--r-- 1 root software 43 Sep 03 10:10 index.html >>> jasonTest/WEB-INF: >>> total 24 >>> drwxr-sr-x 3 root software 512 Sep 03 11:12 classes >>> drwxr-sr-x 2 root software 512 Sep 03 10:09 lib >>> -rw-r--r-- 1 root software 328 Sep 03 14:22 web.xml >>> >>> jasonTest/WEB-INF/classes: >>> total 8 >>> drwxr-sr-x 2 root software 512 Sep 03 10:31 foo >>> >>> jasonTest/WEB-INF/classes/foo: >>> total 8 >>> -rw-r----- 1 root software 815 Sep 03 10:31 >>> HelloWorld.class >>> >>> jasonTest/WEB-INF/lib: >>> total 0 >>> neptune:root> >>> ======================= >>> >>> My web.xml looks like: >>> >>> >>> >>> >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >>> "http://java.sun.com/dtd/web-app_2_3.dtd"> >>> >>> >>> >>> >>> HelloWorld >>> /servlet/foo/HelloWorld >>> >>> >>> >>> >>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> >