You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/06/30 16:08:48 UTC

DO NOT REPLY [Bug 49530] New: Context is not correctly stopped at shutdown

https://issues.apache.org/bugzilla/show_bug.cgi?id=49530

           Summary: Context is not correctly stopped at shutdown
           Product: Tomcat 7
           Version: 7.0.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: rainer.frey+tomcat@inxmail.de


Created an attachment (id=25669)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25669)
Application that show the behavior

Apparently a web application context is not correctly stopped when shutting
down Tomcat 7.0.0. I noticed that the destroy() method of a Servlet that's
loaded on startup was not called, and put together a test case (see attached
files). 

The test servlet writes to System.out on init() and destroy(), the output on
init appears in logs/catalina.out, but no output on destroy. From what I 
understand of the attached log, the context isn't stopped at all.

Steps to reproduce:
1. copy attached startupServlet.war to webapps
2. start Tomcat, then "StartTestServlet.init" appears in catalina.out
3. stop Tomcat

Actual Result:
no output appears in logs/catalina.out

Expected Result:
"StartTestServlet.destroy" appears in catalina.out
catalina.log shows evidence of context /startupServlet being stopped


FWIW:
java -version:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

uname -a
Linux <hostname> 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010
x86_64 GNU/Linux

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49530] Context is not correctly stopped at shutdown

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49530

--- Comment #1 from Rainer Frey <ra...@inxmail.de> 2010-06-30 10:10:24 EDT ---
Created an attachment (id=25670)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25670)
Source code of the test servlet

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49530] Context is not correctly stopped at shutdown

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49530

--- Comment #2 from Rainer Frey <ra...@inxmail.de> 2010-06-30 10:12:25 EDT ---
Created an attachment (id=25671)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25671)
Log file with LifecycleBase logger on FINE level

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49530] Context is not correctly stopped at shutdown

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49530

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nehme-haddad@sab2i.com

--- Comment #4 from Mark Thomas <ma...@apache.org> 2010-08-30 08:38:19 EDT ---
*** Bug 49846 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49530] Context is not correctly stopped at shutdown

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49530

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-07-02 14:05:51 EDT ---
Thanks for the report and test case.

This has been fixed in trunk and will be included in 7.0.1 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org