tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42934] New: - sessionDidActivate() called before contextInitialized()
Date Wed, 18 Jul 2007 21:40:11 GMT
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=42934>.
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=42934

           Summary: sessionDidActivate() called before contextInitialized()
           Product: Tomcat 6
           Version: 6.0.11
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: youngm@gmail.com


I'm using Seam and a Seam app depends upon the Seam application being
initialized before you can do much of anything in Seam.

That said Seam puts some hooks into the sessionDidActivate() and
sessionDidPassivate() events.  Because of that when I start up my app
I'm getting a Seam IllegalStateException because the
contextInitialized() event is fired after sessionDidActivate() so Seam
is not yet initialized it's Session hooks are being fired.

What makes me think this is a bug is that sessionWillPassivate() is being
correctly called before contextDestroyed() so it would seem that
sessionDidActivate() being called before contextInitialized() would be
inconsistent behavior.

So to sum up I think tomcat should fire context and session events in the
following order:

contextInitialized
sessionDidActivate
sessionWillPassivate
contextDestroyed


As a side note Tomcat 5 follows what I think is the completely wrong but
consistent order by firing events in this order:

sessionDidActivate
contextInitialized
contextDestroyed
sessionWillPassivate

-- 
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


Mime
View raw message