tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat does not stop if the deployment fails
Date Tue, 24 Apr 2007 11:26:43 GMT
Tim Lucia wrote:
> You can't, and generally don't want to stop Tomcat (the server) when an
> application is mis-configured.  Instead, you can stop (mark unavailable)
> your application.  One way to do this is to throw an exception inside a
> ServletContextListener, if it detects wrong values inside the configuration
> file:

You could call System.exit() in the ServletContextListener rather than
throw an exception.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message