aspose file tools*
The moose likes Tomcat and the fly likes No rules found matching 'Server/Service/Engine/Host/Cluster/Membership'. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "No rules found matching Watch "No rules found matching New topic
Author

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

Nathan DeSelms
Greenhorn

Joined: Apr 11, 2012
Posts: 3
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

Joined: Jun 25, 2001
Posts: 16141
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16141
    
  21

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

Joined: Apr 11, 2012
Posts: 3
I modified my context.xml in the conf folder like so:



But I still get:

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16141
    
  21

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

Joined: Apr 11, 2012
Posts: 3
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No rules found matching 'Server/Service/Engine/Host/Cluster/Membership'.