[
https://issues.apache.org/jira/browse/GERONIMO-4804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749360#action_12749360
]
Shawn Jiang commented on GERONIMO-4804:
---------------------------------------
Currently, geronimo does not support tomcat clustering through server.xml.
but, you still can try to config the tomcat clustering with GBean way. With
two changes to the plans:
1, in your geronimo-web.xml, add a <type>TomcatValve</type> to the
nextValve of ReplicationValve element.
{code}
<gbean class="org.apache.geronimo.tomcat.ValveGBean"
name="ReplicationValve">
<attribute
name="className">org.apache.catalina.ha.tcp.ReplicationValve</attribute>
<attribute
name="initParams">filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;</attribute>
<reference name="NextValve">
<type>TomcatValve</type>
<name>JvmRouteBinderValve</name>
</reference>
</gbean>
{code}
2, remove the security elements from both geronimo-web.xml and web.xml. There
might be a security deployment problem due to recent security changes to 22 and
trunk. But it's another issue.
> Fail to set up Tomcat Cluster
> ------------------------------
>
> Key: GERONIMO-4804
> URL: https://issues.apache.org/jira/browse/GERONIMO-4804
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Tomcat
> Affects Versions: 2.2
> Environment: OS:win2003
> Reporter: viola.lu
> Assignee: Shawn Jiang
> Priority: Minor
> Attachments: servlet-examples-cluster-plan.xml,
> servlet-examples-cluster-server1.war
>
>
> 1.Modify server.xml under var/catalina/ as tomcat how-to-cluster doc as below:
> <Engine name="Catalina" defaultHost="${ServerHostname}" jvmRoute="node2"
> channelSendOptions="8">
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster">
> <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false"
> notifyListenersOnReplication="true"/>
> <Channel className="org.apache.catalina.tribes.group.GroupChannel">
> <Membership
> className="org.apache.catalina.tribes.membership.McastService"
> address="228.0.0.4"
> port="45564"
> frequency="500"
> dropTime="3000"/>
> <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> address="auto"
> port="4000"
> autoBind="100"
> selectorTimeout="5000"
> maxThreads="6"/>
> <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
> <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
> </Sender>
> <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
> <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
> </Channel>
> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> filter=""/>
> <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
> tempDir="/tmp/war-temp/"
> deployDir="/tmp/war-deploy/"
> watchDir="/tmp/war-listen/"
> watchEnabled="false"/>
> <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
> <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
> </Cluster>
> ....
> </Engine>
> 2.And deploy web apps whose web.xml containing <distributable> element
> succesfully
> 3.Configure Apache http server with mod_jk, but errors in mod_jk.log
> [error] jk_ajp_common.c (1011): (NODE2) can't receive the response message
> from tomcat, network problems or tomcat (9.186.10.167:8009) is down (errno=60)
> [Wed Aug 19 14:01:45 2009] [6828:5876] [error] jk_ajp_common.c (1766):
> (NODE2) Tomcat is down or refused connection. No response has been sent to
> the client (yet)
> [Wed Aug 19 14:01:45 2009] [6828:5876] [info] jk_ajp_common.c (2186): (NODE2)
> sending request to tomcat failed (recoverable), (attempt=1)
> [Wed Aug 19 14:02:03 2009] [6828:1212] [error] jk_ajp_common.c (1011):
> (NODE1) can't receive the response message from tomcat, network problems or
> tomcat (9.186.10.67:8009) is down (errno=60)
> [Wed Aug 19 14:02:03 2009] [6828:1212] [error] jk_ajp_common.c (1766):
> (NODE1) Tomcat is down or refused connection. No response has been sent to
> the client (yet)
> If i follow tomcat cluster steps used in g 2.1.* to work on G 2.2 snapshot,
> it does't work also, when deploy web app, there is an error:
> org.apache.geronimo.common.DeploymentException: Unable to resolve reference
> "NextValve"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.