• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No rules found matching 'Server/Service/Engine/Host/Cluster/Membership'.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I'm trying to get two Tomcat servers to cluster together. My issue is that I'm getting the logging:



On startup.
What this means is that none of the configurations I set in those tags are getting applied to my server. This is a problem, because I'm trying to set up two different multicast systems (one for testing and one for production). Below is the contents of my server.xml:



Any ideas JavaRanch?
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Nathan!

This subsystem is not up to Tomcat's usual high level of documentation standards, alas. It appears, however, that your Tribes Cluster information isn't being put in the right place and therefore the configuration elements aren't matching the Digester rules that Tomcat uses to convert server.xml into its internal working form.

As near as I can tell. you shouldn't be defining these items under the Host element, but instead have to do it on a per-application basis under the Context element.
 
Tim Holloway
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, by the way, if you use the message editor's "Code" button, it will insert tags into your message text that can be used to wrap samples of Java code, XML, and other formatted data. That makes it easier to read.
 
Nathan DeSelms
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I modified my context.xml in the conf folder like so:



But I still get:

 
Tim Holloway
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I RTFM'ed a little further. I take back what I said about Context, The HOW-TO (http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html) says set it up under Engine or Host.

However, the items you're getting errors on aren't in the correct location. Cluster is OK, but the sub-items you have errors for should be under Channel, not directly under Cluster.
 
Nathan DeSelms
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're exactly right! That solved the issue. I think my team never noticed the problem because even without those tags defined a cluster is established, but with default parameters. Thanks for your help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic