Konstantin Kolinko wrote:
2010/4/16 Rhino <rhi...@sympatico.ca>:
However, when I click on my servlets, like /FileUploadServlet for example, I
get this:

 HTTP Status 404 - /FileUploadServlet/


The keyword here is welcome page.  If your WAR file does not have
index.jsp or index.html, or some explicit mapping for its root
address, you will get a 404 response trying to access the root of your
webapp.

According to the web.xml that you posted, your application will
respond to the following URLs:
/FileUploadServlet/form
/FileUploadServlet/servlet

As Homer Simpson would say: "D'oh!". I was clicking on the application from the Tomcat Manager so it was trying to launch FileUploadServlet, i.e. it was trying to go to http://localhost:8080/FileUploadServlet. As soon as I added "/form" to the URL it came up fine! It has been at least four or five years since I last played with a servlet so I simply forgot about adding that part of the URL. Thank you!!!
Some pointers:
http://tomcat.apache.org/tomcat-6.0-doc/index.html
http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html
http://wiki.eclipse.org/WTP_Tomcat_FAQ

You may also want to know, that ${catalina.base}/conf/web.xml provides
the defaults for your WEB-INF/web.xml.
Do not change that common file (in /conf), though, unless it is really needed.

And thanks also for this information! I'll keep it handy.

Best regards,

Rhino

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to