From dev-return-133392-apmail-tomcat-dev-archive=tomcat.apache.org@tomcat.apache.org Thu Nov 29 20:43:01 2012 Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7492DDDA7 for ; Thu, 29 Nov 2012 20:43:01 +0000 (UTC) Received: (qmail 73612 invoked by uid 500); 29 Nov 2012 20:42:59 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 73500 invoked by uid 500); 29 Nov 2012 20:42:59 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 73267 invoked by uid 99); 29 Nov 2012 20:42:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 20:42:58 +0000 Date: Thu, 29 Nov 2012 20:42:58 +0000 (UTC) From: =?utf-8?Q?Olivier_Lamy_=28*=24=5E=C2=A8=25=60=C2=A3=29_=28JIRA=29?= To: dev@tomcat.apache.org Message-ID: <443115382.41980.1354221778903.JavaMail.jiratomcat@arcas> In-Reply-To: <1826564096.20745.1353793978571.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (MTOMCAT-186) Closing executable JAR does not call ServletContextListener.contextDestroyed() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MTOMCAT-186?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Olivier Lamy (*$^=C2=A8%`=C2=A3) updated MTOMCAT-186: ------------------------------------------- Fix Version/s: 2.1 =20 > Closing executable JAR does not call ServletContextListener.contextDestro= yed() > -------------------------------------------------------------------------= ----- > > Key: MTOMCAT-186 > URL: https://issues.apache.org/jira/browse/MTOMCAT-186 > 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 (*$^=C2=A8%`=C2=A3) > Priority: Minor > Fix For: 2.1 > > Attachments: listener.zip > > > Executable JAR created by {{tomcat7-maven-plugin:exec-war-only}} does not= call {{ServletContextListener.contextDestroyed()}} callback method when Ja= va process is killed or when Ctrl + C is pressed. There is no way (?) to cl= eanly 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}}. C= trl + C kills the process immediately. On the other hand {standalone.war}} = deployed to normal Tomcat under {{/webapps}} shuts down correctly and we ca= n see log statement from {{contextDestroyed()}}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org