Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 33513 invoked by uid 500); 26 Jun 2001 17:55:52 -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 33353 invoked from network); 26 Jun 2001 17:55:49 -0000 Received: from web14602.mail.yahoo.com (216.136.224.82) by h31.sny.collab.net with SMTP; 26 Jun 2001 17:55:49 -0000 Message-ID: <20010626175544.83419.qmail@web14602.mail.yahoo.com> Received: from [64.209.29.213] by web14602.mail.yahoo.com; Tue, 26 Jun 2001 10:55:44 PDT Date: Tue, 26 Jun 2001 10:55:44 -0700 (PDT) From: Charles Baker Subject: Re: web.xml not working To: tomcat-user@jakarta.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Here is a servlet definition from my web.xml file: Login com.beeslender.servlets.LoginServlet Login /Login Notice that is a child of . Also, did you create your servlets as part of a package? If so, you need a directory structure under $TOMCAT_HOME/sampleapp/WEB-INF/classes that matches your package. For example, $TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets That's where the *.class files would go. --- Erin Lester wrote: > I have created a web application as per the Servlet > API specs and deployed > it into the webapps directory of Tomcat in a > directory called 'sampleapp.' > > The only way that I am able to access the webapp's > servlet (which is in > sampleapp/WEB-INF/classes) is by the url > 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and > this is only when I > don't have a web.xml file in the WEB-INF directory. > When I place the > web.xml file that I created (using to the documents > on the Sun and > Jakarta sites) I am unable to find my servlet. > > The servlet mapping in the web.xml file looks like > this: > > > StoryGeneratorServlet > > StoryGenerator > > > > StoryGeneratorServlet > > /story > > > I tried using the urls > 'SERVERNAME/sampleapp/servlet/story' and > 'SERVERNAME/sampleapp/story' > > I also tried to install the J2EE sample 'petstore' > web application but had > problems accessing the servlets with it too. I am > able to get to the jsps > and static files okay. > > Does anyone know what I am doing wrong? > > Thanks! > Erin > > PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7 > ===== - rascharles@yahoo.com Hacking is a "Good Thing!" See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/