• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Cluster - Session Replication Problems

 
Joe Harry
Ranch Hand
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Joe Harry
Ranch Hand
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried changing the ethernet config to MULTICAST but still the problem persists and the session state is lost:

 
rajesh Gaganam
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic