On Mar 30, 2004, at 1:45 PM, Chris Egolf wrote:
pablo wrote:maybe I am just missing something. I noticed that in my server.xml there is a portion that is commented out and is specific to JK2 load balancing .Make sure that for each instance of Tomcat, there is a unique jvmRoute attribute in the Engine element of each instance's server.xml. The jvmRoute corresponds to the tomcatId setting in your workers2.properties file (see below). The jvmRoute needs to be unique for each instance. Also, if you're just uncommenting the above in your server.xml, you'll need to comment out the other <Engine> section that doesn't have the jvmRoute attribute. Maybe that's why Tomcat won't start.
<!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
<Engine name="Standalone" defaultHost="localhost:8009" debug="0" jvmRoute="jvm1">
-->
^^^^^^^^^^^^^^Everytime I make an attempt to uncomment this tomcat will not start. Regardless this is what my workers2.properties looks like. #INSTANCE 1 #Socket Channel, explicity set port and host [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009
This should be the jvmRoute setting you specified in this instance's server.xml. The other instance below should have a unique tomcatId as well.
In other words, you've got at least two separate server.xml files, one for each instance of Tomcat on localhost. For instance 1, edit the <Engine> section and add jvmRoute="jvm1". For instance 2, edit the <Engine> section and add jvmRoute"jvm2". Then, in your workers2.properties file, change the tomcatId=jvm1 and tomcatId=jvm2 in each instance's section.
Hope that's clear.
-- ======================================================================= =====
Chris Egolf
http://www.ugholf.net [EMAIL PROTECTED]
======================================================================= =====
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
