Tomcat Native Clustering Apache geronimo 3.0.1无法正常工作

时间:2014-06-11 11:43:52

标签: java apache geronimo

我有两台运行geronimo 3.0.1的linux机器。

我的要求是集群应用程序,并在任何计算机上部署应用程序后在其他计算机上执行自动部署/取消部署。

为此,我在Apache geronimo 3.0.1中配置了Tomcat Native集群,并在两台服务器上进行了以下配置。

<Host name="${ServerHostname}" appBase=""
                  unpackWARs="true" autoDeploy="true"
                  xmlValidation="false" xmlNamespaceAware="false">

                  <Cluster channelSendOptions="8" className="org.apache.catalina.ha.tcp.SimpleTcpCluster">
                        <Manager channelSendOptions="6" className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="false" mapSendOptions="6" name="cluster1" notifyListenersOnReplication="true"/>
                        <Channel className="org.apache.catalina.tribes.group.GroupChannel">
                            <Membership address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" dropTime="3000" frequency="500" port="45564"/>
                            <Receiver address="auto" autoBind="100" className="org.apache.catalina.tribes.transport.nio.NioReceiver" maxThreads="6" port="4000" selectorTimeout="5000"/>
                            <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
                                <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
                            </Sender>
                            <Interceptor className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>
                            <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector" interval="60"/>
                            <Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
                               <Member UniqueId="{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}" domain="mapp01" host="10.9.90.102" port="5002" securePort="-1"/>    
                            </Interceptor>
                            <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
                            <Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
                        </Channel>
                        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>
                        <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
                        <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
                        <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
               </Cluster>

当我重新启动服务器并在一台服务器上部署war文件时,应用程序没有集群并自动部署到其他服务器。在日志中我发现这两行与集群有关

[TomcatModuleBuilder] No clustering builders configured: app will not be clustered 
[DeltaManager] Manager [/Test]: skipping state transfer. No members active in cluster 

组。

我在apache论坛和文档中没有得到任何解决方案。

有没有可用的解决方案?

0 个答案:

没有答案