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/02/10 02:43:16 UTC
DO NOT REPLY [Bug 48717] New: Session listeners not called on
cluster node start
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
Summary: Session listeners not called on cluster node start
Product: Tomcat 5
Version: 5.5.28
Platform: PC
OS/Version: Linux
Status: NEW
Severity: regression
Priority: P2
Component: Catalina:Cluster
AssignedTo: dev@tomcat.apache.org
ReportedBy: drees76@gmail.com
This appears to be a regression from an earlier bug #35916 which describes the
exact same problem, but somewhere along the way, it appears that the bug has
come back.
Basically, once Tomcat is put in to a cluster and a node joins the cluster, the
webapp isn't notified via either HttpSessionActivationListener.didActivate or
HttpSessionListener.sessionCreated.
Otherwise, all nodes seem to receive these events as expected once in the
cluster.
This is a problem for an application which needs to track all currently active
sessions as it will not know of any existing sessions when joining a cluster.
This also appears to affect Tomcat 6.0.24 as well where the symptoms are the
same.
I actually posted to the users list almost a year ago (totally forgot I did
that until I was searching the archives again), but didn't hear any response
and worked around the issue temporarily, but it has come up again so I posted
to the list again, but no response either time.
http://www.mail-archive.com/users@tomcat.apache.org/msg58675.html
http://www.mail-archive.com/users@tomcat.apache.org/msg73135.html
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #3 from David Rees <dr...@gmail.com> 2010-05-05 18:01:33 EDT ---
Is there any chance you'll also be backporting to 5.5.x as well?
Appreciate the updates...
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-05-05 17:54:37 EDT ---
This has been fixed in 6.0.x and will be included in 6.0.27 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
DO NOT REPLY [Bug 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #7 from Mark Thomas <ma...@apache.org> 2011-02-18 06:45:45 EST ---
Created an attachment (id=26679)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26679)
Adds sessionDidActivate calss
The previous fix handled session creation/destruction but not activation
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
David Rees <dr...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Version|5.5.28 |5.5.32
Resolution|FIXED |
--- Comment #6 from David Rees <dr...@gmail.com> 2011-02-09 19:29:32 EST ---
I never got a chance to test that this was fixed until now, but testing on
5.5.32 still does not appear to work.
How I'm testing:
Two Linux systems running Tomcat 5.5.32 with a Cluster defined in the Host
section like this:
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
receiver.sendAck="false" sender.waitForAck="false"
sender.doTransmitterProcessingStats="true" sender.queueDoStats="true"
sender.queueTimeWait="true">
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>
<Valve className="org.apache.catalina.cluster.session.JvmRouteBinderValve"
enabled="true"/>
<ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
<ClusterListener
className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener"/>
</Cluster>
The application has a <listener><listener-class> defined in the web.xml which
implements ServletContextListener and HttpSessionListener. The
HttpSessionListener methods work fine on each node.
The application adds an attribute to a session which implements
HttpSessionActivationListener, HttpSessionBindingListener and Serializable.
The HttpSessionBindingListener methods work fine on each node.
When restarting a node, the session attribute never receives any calls to
sessionDidActivate when that node comes back online.
Let me know if you need any more details.
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #8 from David Rees <dr...@gmail.com> 2011-02-24 17:48:44 EST ---
Thanks - so I guess to test this I'd have to apply the patch to Tomcat source
and build it myself?
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-03-28 19:42:34 UTC ---
Confirmed and fixed in trunk for 7.0.x
I have proposed the same fix for 6.0.x and 5.5.x
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #9 from Mark Thomas <ma...@apache.org> 2011-02-24 17:52:52 EST ---
'fraid so.
--
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 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Mark Thomas <ma...@apache.org> 2010-05-18 13:17:12 EDT ---
This has been fixed in 5.5.x and will be included in 5.5.30 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
DO NOT REPLY [Bug 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #10 from Mark Thomas <ma...@apache.org> 2011-08-16 12:44:45 UTC ---
This has been fixed in 5.5.x and will be included in 5.5.34 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
DO NOT REPLY [Bug 48717] Session listeners not called on cluster
node start
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717
--- Comment #4 from Mark Thomas <ma...@apache.org> 2010-05-05 18:05:34 EDT ---
As per comment #1, it has been proposed for 5.5.x. When it gets enough votes,
it will be committed.
--
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