File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Tomcat 404 Error on Every New Servlet I Create Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat 404 Error on Every New Servlet I Create" Watch "Tomcat 404 Error on Every New Servlet I Create" New topic
Author

Tomcat 404 Error on Every New Servlet I Create

Paul Hoffman
Greenhorn

Joined: Nov 04, 2005
Posts: 19
Hello!

I am using Eclipse and Tomcat. Everytime I create a servlet and run it through my server I get a 404 error - which I then restart and then it works. I have to do this quite often.

Does anyone know why I must restart my server so often?

Thanks!!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Changes in web.xml simply require a server restart.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Bauke Scholtz wrote:Changes in web.xml simply require a server restart.

Correction: a context restart. For containers (like Tomcat) that support it, you can just restart the context without having to restart the whole server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Yes, that's correct.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 404 Error on Every New Servlet I Create