wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 7 Session replication does not work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 Session replication does not work" Watch "Tomcat 7 Session replication does not work" New topic

Tomcat 7 Session replication does not work

Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Hello Experts,

I have two tomcat nodes running on a Linux Machine. Below is the configuration of server.xml from the two servers. Can anyone tell me what is wrong in my configuration?. I am seeing that session is not getting replication to second tomcat instance when first tomcat goes down. A new session ID is being generated on Second tomcat Node.

Node1 Server.xml Cluster configuration

Node2 server.xml Cluster configuration

Thanks in Advance.

Pankaja Shinde
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
@Ifteqar Ald
Please make sure that your applications are distributable.
You can make applications distributable by adding <distributable /> tag in web.xml of application.
subject: Tomcat 7 Session replication does not work
Similar Threads
Clustering Tomcat - one node refuses to join
Session replication with Tomcat 6
Tomcat 6.0.X (could be 18, 26 or 32 tried all 3)
Tomcat session replication on failover in a cluster
tomcat cross cluster communication problems