-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alexander,
On 5/13/2011 8:40 AM, Alexander Diedler wrote: > Why see one tomcat the apps of another tomcat? Are you asking: "why does one Tomcat see the webapps deployed on another Tomcat?" > We have two servers with two installed Apache Tomcats 6.0.32 and one Apache > Webserver 2.2.14. > > Server A: > Tomcat1 hosts App1 and App2 > Tomcat2 hosts App3 > > Server B: > Tomcat1 hosts App1 and App2 > Tomcat2 hosts App3 So you have seemingly identical servers, each with two instances of Tomcat. > In the worker.properties we define two loadbalancer worker, but it seems, > that they found each other “cluster”. > worker.loadbalancer.type=lb > worker.loadbalancer.balance_workers=worker1,worker2 > worker.loadbalancertc.type=lb > worker.loadbalancertc.balance_workers=worker6,worker7 > worker.worker1.port=8010 > worker.worker1.host=192.168.100.1 > worker.worker1.route=worker1 > worker.worker2.port=8010 > worker.worker2.host=192.168.100.2 > worker.worker2.route=worker2 > worker.worker6.port=8012 > worker.worker6.host=192.168.100.1 Missing 'route' setting, here. > worker.worker7.port=8012 > worker.worker7.host=192.168.100.2 Missing 'route' setting, here. These missing 'route' settings probably don't matter, as the default route is the name of the worker. It's not much different from the rest of your workers.properties file where you are explicitly setting these options to their defaults, etc. You might want to consider using a "template" worker instead of repeating all this stuff. I also don't see a "worker.list" setting. Did you just omit that from your post? > WARNUNG: Context manager doesn't exist:article_finder_admin# > WARNUNG: Context manager doesn't exist:article_finder_admin# > WARNUNG: Context manager doesn't exist:article_finder_admin# > WARNUNG: Context manager doesn't exist:article_finder_admin# > WARNUNG: Context manager doesn't exist:article_finder_admin# > WARNUNG: Context manager doesn't exist:article_finder_admin# > WARNUNG: Context manager doesn't exist:akademie# > WARNUNG: Context manager doesn't exist:akademie# > WARNUNG: Context manager doesn't exist:extranet# > WARNUNG: Context manager doesn't exist:extranet# > WARNUNG: Context manager doesn't exist:extranet# > WARNUNG: Context manager doesn't exist:extranet# (Looks like there's a missing localized error message, there. What version of TC are you running?) > The Context Managers for article_Finder_admin, akademie and extranet are > Virtual Hosts in LoadbalancerA and doesn´t exists in conf directory of > Tomcat2. > > We define the Cluster Valve inside the Engine (remark, these block was eqal > on every server.xml, or have we to customize these valve???) : What about the <Engine> block? Have you properly set the jvmRoute for each of those on their respective servers? Also, the <Membership> should probably be different on each server... you need to specify the "address" attribute differently, I think. > <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" > channelSendOptions="8"> > <Manager className="org.apache.catalina.ha.session.DeltaManager" > expireSessionsOnShutdown="false" > notifyListenersOnReplication="true"/> So, you are doing both session stickiness /and/ session replication? If all 4 TC instances are members of the same cluster, then you should expect all the errors you are getting. Try re-reading http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html (I know you've at least visited it, because your configuration is copy/pasted directly from that page), especially this part: " Also when using the delta manager it will replicate to all nodes, even nodes that don't have the application deployed. " You might want to consider configuring your clusters separately instead of one large cluster. There is another suggestion in that documentation for getting around this problem. I'll let you read the docs to find it. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3NSpEACgkQ9CaO5/Lv0PAhRwCffV6nLRXH9bdr4q4P4x7a3sib bPkAnizFQeyD7da1HUSHwLn+UWXbxRsA =jGP/ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org