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 Tomcat3.2.2 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 "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: 15961
    
  19

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat3.2.2
 
Similar Threads
Auto restart of Tomcat?
shutdown tomcat on port 8005
tomcat keeping shuting down
start and shutdown of remote JBoss
How to calculate maximum server load (Tomcat 3.2.2)