I'd like to configure Tomcat 5.5 to fail to start if any of its webapps fail to start. Is that possible? I can't find any configuration element in the documentation that suggestions that this can be done.
A:
I suspect there's no way to do it with a configuration setting. Tomcat is started with a script. Extend the script to check whether your site is up, and then stop tomcat if it isn't.
Jeremy Stein
2009-10-14 14:38:10
+1
A:
If you have no security manager running, you can simply call System.exit(0)
on failure. The shutdown handler will perform an orderly shutdown.
ZZ Coder
2009-10-14 14:50:45