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
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.