• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nathan DeSelms
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I modified my context.xml in the conf folder like so:



But I still get:

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic