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 2006/03/20 17:14:40 UTC

DO NOT REPLY [Bug 39038] New: - During Tomcat 5.5.16 startup/shutdown, order of executing between session and context listeners is backwards.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39038>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39038

           Summary: During Tomcat 5.5.16 startup/shutdown, order of
                    executing between session and context listeners is
                    backwards.
           Product: Tomcat 5
           Version: 5.5.16
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dldiehl@yahoo.com
                CC: dldiehl@yahoo.com


On Tomcat 5.5.16 startup, listener classes that implement the 
HttpSessionAttributeListener interface are being called before classes that 
implement the ServletContextListener interface.  On shutdown, classes that 
implement HttpSessionAttributeListener (e.g. sessionWillPassivate method) are 
called before classes that implement the ServletContextListener interface.

After reading section SRV.10.3.3 (Listener Registration) and SRV.10.3.4 
(Notifications At Shutdown) of the 2.4 servlet spec, I believe the order of 
these invocations are backwards.  

Shutdown in the spec is very clear, in that it states "Session listeners must 
be notified of session invalidations prior to context listeners
being notified of application shutdown."  While not as clear, I believe that 
it only makes sense during startup that context listeners should be notified 
before session attribute listeners.

The behavior that I believe it correct is what is being done in Tomcat 5.5.9.

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

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


DO NOT REPLY [Bug 39038] - During Tomcat 5.5.16 startup/shutdown, order of executing between session and context listeners is backwards.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39038>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39038


dldiehl@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From dldiehl@yahoo.com  2006-12-24 19:06 -------
This is the same as Bug 30762 (which I had reported a long time ago against 
Tomcat 5.0.27).  It has been fixed.  It is working fine now in version 
5.5.20.  thanks.

*** This bug has been marked as a duplicate of 30762 ***

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

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


DO NOT REPLY [Bug 39038] - During Tomcat 5.5.16 startup/shutdown, order of executing between session and context listeners is backwards.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39038>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39038


yoavs@computer.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From yoavs@computer.org  2006-12-24 18:55 -------
Is this still the case in 5.5.20?  Can you please attach a simple test webapp we
can use to reproduce what you're seeing?

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

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