I don't have a webapps/examples/myApp/* What I have is: mydomain/examples/* and mydomain/myApp/*. There is a context created for each.
In mydomain/examples I can access a resource at the following url: mydomain/examples/servlet/TestingServlet. In mydomain/myApp, when I try to access a resource at mydomain/myApp/servlet/TestingServlet, I get a 404. I can, however, access a resource at mydomain/myApp/SimplePage.jsp. -----Original Message----- From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 2:36 AM To: Tomcat Users List Subject: Re: Application Configuration Do you really need to have webapps/examples/myApp/* ? Otherwise, just have webapps/myApp/* and create a context for "myApp"... -Rishi. On Thu, 18 Sep 2003 20:18:28 -0400, "Renda, Michael" <[EMAIL PROTECTED]> said: > Hi, > > I'm having a simple application configuration problem. > > 1. Tomcat 4.1.27 > > 2. I can run all of the applications in the examples directory. > > 3. I've created a new directory structure called myApp. Within it is > WEB-INF and within that is classes. Within myApp/WEB-INF/classes is a > servlet called TestingServlet. > > 4. I put a simple .jsp page in the /myApp directory and Tomcat serves > it up just fine. > > 5. I cannot access the TestingServlet page, however. Tomcat reports a > 404 - requested resource is not available. > > 6. If I move the servlet to the examples/WEB-INF/classes directory, > Tomcat serves it up. > > 7. The myApp/WEB-INF directory has a web.xml file as follows: > <?xml version="1.0" encoding="ISO-8859-1"?> > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > <web-app> > <display-name>My Java Applications</display-name> > <description> > Example servlets and JSP pages. > </description> > <servlet> > <servlet-name>Testing</servlet-name> > <servlet-class>TestingServlet</servlet-class> > </servlet> > </web-app> > > 8. The log files show that the myApp application is being deployed at > Tomcat startup with no errors. > > Any suggestions would be appreciated. > > Mike Renda > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Rishikesh Tembe [EMAIL PROTECTED] -- http://www.fastmail.fm - And now for something completely different... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]