Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Graceful shutdown of Tomcat - How?
Graceful shutdown of Tomcat - How? [message #522184] Sat, 20 March 2010 18:50 Go to previous message
Mike  is currently offline Mike
Messages: 1
Registered: March 2010
Junior Member
Hi,

I have Tomcat running from within Eclipse using WTP and can control startup and shutdown from the Servers View. However, when I click on Stop for a running Tomcat, the server shuts down but doesn't seem to do so gracefully, i.e. my 'listener-class' specified in 'web.xml' never gets to execute its 'contextDestroyed()' method (at least, I am not seeing my logs in the log file).

When I run the same code in a standalone Tomcat installation, calling the 'startup.sh' and 'shutdown.sh' scripts manually from a console, the contextDestroyed() method is executed and I see my logging statements in the logfile.

Is there a way to shutdown Tomcat gracefully from within WTP so that my listeners get to destroy themselves?

Thanks
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Republish does not work (static resources)
Next Topic:Referenced Jar Does not exist
Goto Forum:
  


Current Time: Sun May 19 00:13:32 EDT 2013

Powered by FUDForum. Page generated in 0.01572 seconds