tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <>
Subject Test servlet won't run - help?
Date Thu, 16 Jan 2003 17:36:01 GMT

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"


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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message