This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat3.2.2  RSS feed

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!