tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From János Löbb <>
Subject clustering on different machines
Date Fri, 26 Sep 2008 20:54:46 GMT

I posted it earlier, but received no answers, so I try again.

I have apache2 2.2.9, mod_jk 1.2.26, and Tomcat 6.0.18 running on my  
Mac with OSX 10.5.6.  Its domain name is  On my  
Windows 2000 machines I have tomcat 6.0.16 and its domain name is

On the mac I have 3 nodes, on the Windows machine I have one.  In the  
mac I start the three up with 10 seconds pause in between.  I can see  
from the logs, that all 4 found each other and participate in the  

I use the SessionsExample.  On the Mac the three nodes replicating the  
session to each other, but nothing goes to the Windows machine.  On  
the Mac the failover is working, but again the one on the Mac that  
should fail over to the tomcat instance on the Windows machine does  
not fail over.

Here is the file from /usr/local/apache2/conf on  
the Mac:
worker.list = lb,jkstatus,node2,node3,node4


worker.node1.type = ajp13 = localhost
worker.node1.port = 8009
worker.node1.lbfactor = 1
worker.node2.type = ajp13 = localhost
worker.node2.port = 8109
worker.node2.lbfactor = 1
worker.node3.type = ajp13 = localhost
worker.node3.port = 8209
worker.node3.lbfactor = 1
worker.node4.type = ajp13 =
worker.node4.port = 8309
worker.node4.lbfactor = 1

worker.node1.sticky_session = True
worker.node2.sticky_session = True
worker.node3.sticky_session = True
worker.node4.sticky_session = True

worker.node1.sticky_session_force = False
worker.node2.sticky_session_force = False
worker.node3.sticky_session_force = False
worker.node4.sticky_session_force = False

here is the relevant portion of of the server.xml from one of the Mac  
     <Engine name="Catalina" defaultHost="localhost" jvmRoute="node1">


	<Context path="" docBase="ROOT"  

       <!-- This Realm uses the UserDatabase configured in the global  
            resources under the key "UserDatabase".  Any edits
            that are performed against this UserDatabase are immediately
            available for use by the Realm.  -->
       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"

       <Host name="localhost"  appBase="webapps"
             unpackWARs="true" autoDeploy="true"
             xmlValidation="false" xmlNamespaceAware="false">



Here is the similar server.xml portion from the Windows machine:
     <Engine name="Catalina" defaultHost="localhost" jvmRoute="node4">

       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
	<Context path="" docbase="ROOT"  

       <Host name="localhost"  appBase="webapps"
             unpackWARs="true" autoDeploy="true"
             xmlValidation="false" xmlNamespaceAware="false"/>
       <Host name=""  appBase="webapps"
             unpackWARs="true" autoDeploy="true"
             xmlValidation="false" xmlNamespaceAware="false"/>


What am I doing wrong ?

Thanks ahead,

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message