Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Tomcat Cluster - Session Replication Problems

 
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • 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: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • 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:

 
Greenhorn
Posts: 2
  • 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: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • 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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!