Do you have a Context defined in server.xml for /myApp? Check server.xml for /examples to see what one looks like. Or, check the docs for Context, there is a way to auto-deploy Contexts so you don't have to edit server.xml directly.
John > -----Original Message----- > From: Mark [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 16, 2003 12:36 PM > To: Tomcat Users List > Subject: Test servlet won't run - help? > > > Hi, > > I'm trying to run a simple Hello world servlet called > myAppServlet. I'm using Windows XP, Tomcat 4.1, and j2sdk > 1.4.1. The servlet WILL run when I put it in > webapps/examples/WEB-INF/classes. I can run it with the > browser address, http://localhost:8080/examples/servlet/myAppServlet > > However, the servlet will not run when I locate it in > webapps/myApp/WEB-INF/classes. When I try to run it with the > browser address, > http://localhost:8080/myApp/servlet/myAppServlet, I get the > HTTP Status 404 error message. > > I put the following web.xml file into the > webapps/myApp/WEB-INF folder, which didn't have any effect: > > <!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> > <servlet> > <servlet-name>myAppServlet</servlet-name> > <servlet-class>myAppServlet</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>myAppServlet</servlet-name> > <url-pattern>/myAppServlet</url-pattern> > </servlet-mapping> > </web-app> > > I also stopped and started the computer to make sure that > Tomcat was stopped and started again. > > > It seems as though Tomcat is not seeing my myApp application. > Any help would be greatly appreciated. Thanks in advance. > > Mark Steere > [EMAIL PROTECTED] > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>