This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet unavailable after restart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet unavailable after restart" Watch "Servlet unavailable after restart" New topic
Author

Servlet unavailable after restart

Steve Leach
Ranch Hand

Joined: Sep 24, 2003
Posts: 46
Hi all
I have a JSP/Servlet application that is working fine under Tomcat 4, except that if I restart the application (using an Ant task or the Tomcat Manager app) I will just get "Servlet MainServlet is currently unavailable" exceptions.
MainServlet is my controller servlet.
The only thing I can find in the logs are a number of exceptions, all the same, that I don't understand

A web search locates a few references to lifecycle errors, mainly in discussion forums, but I can't find a solution anywhere.
On my WinXP laptop implementation I can restart fine, with no problems. Same app, same config (as near as I can make out).
Cheers
Steve
Steve Leach
Ranch Hand

Joined: Sep 24, 2003
Posts: 46
I just found a reference to a Tomcat hotfix for this issue.
HotFix
That seems to fix the problem. I'll keep an eye on it and see what happens.
 
wood burning stoves
 
subject: Servlet unavailable after restart
 
Similar Threads
Servlet errors
Deploy Spring Application to tomcat
Problem deploying my first Struts example
Error while removing context
ServletException and Wrapper cannot find servlet class