This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
jQuery in Action, 2nd edition
 
subject: Servlet unavailable after restart