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
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: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

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: 9243
    
    1

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Cluster - Session Replication Problems
 
Similar Threads
Tomcat 6.0.X (could be 18, 26 or 32 tried all 3)
Tomcat 6 Cluster Woes
Tomcat 5.5.26 Sessions getting replicated but not working via browser
Tomcat and apache configuration in debian
How to enable session replication between servers in a cluster