This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat3.2.2" Watch "Tomcat3.2.2" New topic
Author

Tomcat3.2.2

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi,
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.
Thanks..
...saj
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat3.2.2