tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomasz Nurkiewicz (JIRA)" <>
Subject [jira] [Updated] (MTOMCAT-186) Closing executable JAR does not call ServletContextListener.contextDestroyed()
Date Sat, 24 Nov 2012 22:02:58 GMT


Tomasz Nurkiewicz updated MTOMCAT-186:

> Closing executable JAR does not call ServletContextListener.contextDestroyed()
> ------------------------------------------------------------------------------
>                 Key: MTOMCAT-186
>                 URL:
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: Java 7, maven 3.0.3
>            Reporter: Tomasz Nurkiewicz
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>         Attachments:
> Executable JAR created by {{tomcat7-maven-plugin:exec-war-only}} does not call {{ServletContextListener.contextDestroyed()}}
callback method when Java process is killed or when Ctrl + C is pressed. There is no way (?)
to cleanly shutdown web application.
> The same application (attached) deployed on standalone Tomcat works just fine. Hitting
Ctrl + C correctly undeploys and shuts down application.
> Build attached application and run {{java -jar target/standalone.jar}}. Ctrl + C kills
the process immediately. On the other hand {standalone.war}} deployed to normal Tomcat under
{{/webapps}} shuts down correctly and we can see log statement from {{contextDestroyed()}}.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message