File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Cluster - Session Replication Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Cluster - Session Replication Problems" Watch "Tomcat Cluster - Session Replication Problems" New topic
Author

Tomcat Cluster - Session Replication Problems

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9467
    
    2

Guys,

I have a Tomcat 6 cluster set up. When I try to get the second machine started, I see the following message in the log file:

INFO main org.apache.catalina.tribes.membership.McastService - Attempting to bind the multicast socket to /228.0.0.4:45564
INFO main org.apache.catalina.tribes.membership.McastService - Binding to multicast address, failed. Binding to port only.

When trying to run my app, I get thrown out of the session everytime the request switches between the nodes. I followed the Tomcat 6 cluster documentation as specified here.

http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

Any suggestions?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9467
    
    2

Tried changing the ethernet config to MULTICAST but still the problem persists and the session state is lost:

rajesh Gaganam
Greenhorn

Joined: Mar 05, 2011
Posts: 1
I assume that the IP is resolvable and the tomcat server is able to bound to the IP when run as an individual server. It could a problem with "multicast" IP
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9467
    
    2

Just noticed another problem. When I tried to write the session object to a file, it gave me a NotSerializableException. It looks like the session attribute name is somehow not Serializable and I check which one was that and it is the org.apache.struts.action.LOCALE. Don't have a clue what that is? Is this a class?
 
Consider Paul's rocket mass heater.
 
subject: Tomcat Cluster - Session Replication Problems