On 4/27/07, Si'mon <[EMAIL PROTECTED]> wrote:

For development boxes, I want tomcat to exit if an exception is thrown in a
specific .war (web application).  After exiting it will print the exception
and not go any further.

Is there any way to do this (configuration) or any way to incorporate this
into the web application?

I haven't written code to shutdown Tomcat from a program.

One thing that comes to mind is calling shutdown.bat / shutdown.sh
from the location of the catch for that exception.

Also, there may be other better ways to accomplish this.

I think it's a bad idea to shutdown tomcat every time an exception
occurs. Some of the exceptions do get logged in the logs folder under
Tomcat's folder whether Tomcat is shutdown or not, additionally you
can use tools like Log4J to log your own exceptions.


thanks


Si'mon
--

-Regards
Rashmi

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

Reply via email to