Is there any way to terminate a web application without calling System.exit(). Basically, if there are some invalid properties/etc during initialization of the web app, we would like to force the application to shut down or not run. Calling System.exit is obviously risky in a shared container.
go to your tomcat page (localhost:8080), click on Manager, type in your username and password (located in $CATALINA_HOME/conf/users.xml) for admin. There you will see list of application. You can stop, start, restart, and undeploy them. What you're looking for is stop.
Joined: Jul 29, 2002
Thanks for all the answers but I'm really looking for programmatic solutions along the line of the first two.