-
1. Re: Session replication failed in jboss cluster
dlingam Feb 20, 2006 6:19 AM (in response to zhixing_lv)As Session replication handled by jboss, plz check the below
a)<jboss_home>\server\all\deploy\jbossweb-tomcat55.sar
where nodename what u mentioned in the workers.properties.
b)<jboss_home>\server\all\deploy\jbossweb-tomcat55.sar\META-INF
false
change
true
Thx -
2. Re: Session replication failed in jboss cluster
dlingam Feb 20, 2006 6:25 AM (in response to zhixing_lv)hi,
In previous post this one is not clear, ignore previous post b) part use this
b) <jboss_home>\server\default\deploy\jbossweb-tomcat55.sar\META-INF
jboss-service.xml
false
change to
true -
3. Re: Session replication failed in jboss cluster
dlingam Feb 20, 2006 6:29 AM (in response to zhixing_lv)Hi,
Oops again, i think this one missed out
b) <jboss_home>\server\default\deploy\jbossweb-tomcat55.sar\META-INF
jboss-service.xml
lookfor 'UseJK'
change
value of UseJK value from false to true. -
4. Re: Session replication failed in jboss cluster
webservicesadmin Feb 20, 2006 11:43 AM (in response to zhixing_lv)Hi,
You might have missed some configuration changes in the jboss or Apache for session replication...
Please go through this link to overcome your problem
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss,
Regards,
Rajesh.G -
5. Re: Session replication failed in jboss cluster
zhixing_lv Feb 20, 2006 9:50 PM (in response to zhixing_lv)I have modified jboss-service.xml and server.xml,
attribute name="UseJK" true /attribute
Engine name="jboss.web" defaultHost="localhost" jvmRoute="server1"
and in the workers2.properties file, I have set worker.loadbalancer.sticky_session to "0":
worker.loadbalancer.sticky_session=0
My jboss version is 4.0.2 and Apache version is 2.0.55
It seems the session isn't be replicated.
The following is a part of the log file:
================================================
2006-02-21 10:33:33,274 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] check to see if needs to store and replicate session with id QVAvltSmaE86Y-E92RWGfA**.server1
2006-02-21 10:33:33,274 DEBUG [org.jboss.web.tomcat.tc5.session.ClusteredSession] processSessionRepl(): session is dirty. Will increment version from: 3 and replicate.
2006-02-21 10:33:36,118 WARN [org.jgroups.protocols.pbcast.NAKACK] [AlexWin:1282] discarded message from non-member localhost:32980
2006-02-21 10:33:38,011 WARN [org.jgroups.protocols.pbcast.NAKACK] [AlexWin:1277 (additional data: 17 bytes)] discarded message from non-member localhost:32977 (additional data: 14 bytes)
2006-02-21 10:33:45,201 WARN [org.jgroups.protocols.pbcast.NAKACK] [AlexWin:1277 (additional data: 17 bytes)] discarded message from non-member localhost:32977 (additional data: 14 bytes)
2006-02-21 10:36:46,362 DEBUG [javax.faces.webapp.FacesServlet] service begin
2006-02-21 10:36:46,362 DEBUG [org.jboss.web.tomcat.tc5.session.ClusteredSession] initAfterLoad(): initialize the transient variables ...
2006-02-21 10:36:46,362 DEBUG [org.jboss.web.tomcat.tc5.session.SessionIDGenerator] getSessionId called: so8JjNrCYxo1MTECNjmhxA**
2006-02-21 10:36:46,362 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] createSession(): useJK is true. Will append JvmRoute: server1
2006-02-21 10:36:46,362 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] check to see if needs to store and replicate session with id so8JjNrCYxo1MTECNjmhxA**.server1
2006-02-21 10:36:46,362 DEBUG [org.jboss.web.tomcat.tc5.session.ClusteredSession] processSessionRepl(): session is dirty. Will increment version from: 0 and replicate.
2006-02-21 10:36:46,372 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] Session with id=so8JjNrCYxo1MTECNjmhxA**.server1 added. Current active sessions 2
2006-02-21 10:36:46,372 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] Creating an ClusteredSession with id: so8JjNrCYxo1MTECNjmhxA**.server1
2006-02-21 10:36:46,372 DEBUG [javax.faces.webapp.FacesServlet] service end
2006-02-21 10:36:46,372 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] check to see if needs to store and replicate session with id so8JjNrCYxo1MTECNjmhxA**.server1
2006-02-21 10:36:46,372 DEBUG [org.jboss.web.tomcat.tc5.session.ClusteredSession] processSessionRepl(): session is dirty. Will increment version from: 1 and replicate.
2006-02-21 10:36:49,086 DEBUG [javax.faces.webapp.FacesServlet] service begin
2006-02-21 10:36:49,086 DEBUG [javax.faces.webapp.FacesServlet] service end