File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet unavailable after restart" Watch "Servlet unavailable after restart" New topic

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).
Steve Leach
Ranch Hand

Joined: Sep 24, 2003
Posts: 46
I just found a reference to a Tomcat hotfix for this issue.
That seems to fix the problem. I'll keep an eye on it and see what happens.
I agree. Here's the link:
subject: Servlet unavailable after restart
It's not a secret anymore!