On 05/04/2012 15:13, Dhaval Jaiswal wrote:
> I have tested the below cluster manager; as per the instruction i have
> changed. However, when we try to deploy the apps on tomcat it was
> throwing error that
> 
> WARNING: Unable to send map start message.
> Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
> SEVERE: Unable to start BackupManager
> java.lang.RuntimeException: Unable to start replicated map.
>        at
> org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)
> 
> Failed to start BackupManager:  java.lang.IllegalArgumentException:
> Listener already
> exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]
> 
> 
> 
> i am using below server.xml for all the 10 tomcats. Do i have to change
> it for every tomcat. How would i fix it.
> 
> 
> 
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> channelSendOptions="6">
>         <Manager
> className="org.apache.catalina.ha.session.BackupManager"
> expireSessionsOnShutdown="false"
>                    notifyListenersOnReplication="true" mapSendOptions="6"/>
> 
>             <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
>              <Membership
> className="org.apache.catalina.tribes.membership.McastService"
>                         address="228.0.0.4"
>                         port="45563"
>                         frequency="500"
>                         dropTime="30000"/>
>              <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>                       address="auto"
>                       port="4000"
>                       selectorTimeout="5000"
>                       timeout="60000"
>                       maxThreads="6"/>
> 
>              <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
>                   <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" 
> timeout="60000"
> keepAliveCount="0"/>
>              </Sender>
>              <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
>              <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|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
>          <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
>        <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
>        <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
>      </Cluster>


Wow.  That's pretty neat, I've never seen Tomcat start up with just the
cluster definition.

How about you:

1) remove all comments
2) remove all passwords
3) post the whole server.xml inline in your next reply


p


-- 

[key:62590808]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to