File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Tomcat3.2.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat3.2.2" Watch "Tomcat3.2.2" New topic


Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
I'm using Tomcat3.2.2 servlet container. I am using this for a chat application. I have a problem here. Once in a while, something goes wrong and the Tomcat server is shutdown. I am running the Tomcat as a service, so no server console appears. How ever when the Tomcat server shutdowns i can never know for what reason it shutdown. It could be SQL error or even a bug in our servlets, but i never know why?. Is there any means by which i know why the server shutdown. Also can i configure the Tomcat server to restart when it shutdowns. I know that i can write a log file which will register all exceptions caused at the server.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

Check the "Dr. Watson" log"to see if the VM died. You should also be logging the tomcat stdout and stderr to disk files - though I don't know that that's done in Windows services without looking it up.
As far as restarting goes, you're in the same boat as any other NT service. Whatever you could find or write to detect a "vanished" process and relaunch it should suffice.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Tomcat3.2.2
jQuery in Action, 3rd edition