R – Can Tomcat be configured to fail to start if a webapp fails to start

startup, tomcat

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.

Best Solution

If you have no security manager running, you can simply call System.exit(0) on failure. The shutdown handler will perform an orderly shutdown.