This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60740
    
  65

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.
 
wood burning stoves
 
subject: Tomcat 404 Error on Every New Servlet I Create
 
Similar Threads
Error: 404
Http Status 404 - Servlet ControllerServlet is not available
Problem starting servlet
Running self made Servlets on tomcat
Servlet Not Found 404,500