You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by o-rabbit <rj...@gmail.com> on 2010/04/26 08:19:32 UTC

Problem with tomcat session replication

I am using two instances of tomcat 6.0.20 in the same window machine, the
second instance while starting up gives the following message :
----------------------------------------------------------------------------------
INFO: Attempting to bind the multicast socket to /228.0.0.4:45564
Apr 26, 2010 12:55:32 AM
org.apache.catalina.tribes.membership.McastServiceImpl
setupSocket
INFO: Binding to multicast address, failed. Binding to port only.
Apr 26, 2010 12:55:32 AM
org.apache.catalina.tribes.membership.McastServiceImpl
setupSocket
INFO: Setting multihome multicast interface to:/170.21.25.46
Apr 26, 2010 12:55:32 AM
org.apache.catalina.tribes.membership.McastServiceImpl
setupSocket
INFO: Setting cluster mcast soTimeout to 500
.
.
INFO: Manager [localhost#/mycontext]: skipping state transfer. No members
active in cluster group
-----------------------------------------------------------------------------------------------
I have followed the tomcat cluster howto guide closely, Given below is the
config (I have mentioned the changes between config of the two nodes where
ever applicable) :

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
                 channelSendOptions="8">

         
          <Manager className="org.apache.catalina.ha.session.DeltaManager"
                   expireSessionsOnShutdown="true"
   				   useDirtyFlag="true" 
                   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"  (in second node it is 4001)
                      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=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.html;.*\.css;.*\.txt;"/>
          <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"
enabled="true" sessionIdAttribute="takeoverSessionid"/> 

          <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
          <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
        </Cluster>    



What is the problem?? Any pointers, tips or outright solution would be
appreciated!!

-- 
View this message in context: http://old.nabble.com/Problem-with-tomcat-session-replication-tp28361225p28361225.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Dear, need your help -- i am confiugrint tomcat clustering on two nodes

Posted by spideratd <em...@gmail.com>.

Thanks a lot Mark
I am starting it just now........ and will post configuration settings if it
will be a  success......
hoping to listen from u if u have any link other than reading tomcat manual.

Regards
Asif
-- 
View this message in context: http://old.nabble.com/Problem-with-tomcat-session-replication-tp28361225p30975806.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Dear, need your help -- i am confiugrint tomcat clustering on two nodes

Posted by Mark Thomas <ma...@apache.org>.
On 21/02/2011 09:05, spideratd wrote:
> 
> Dear,
> i have configured tomcat 6.0.32 with mod_jk.so and apache on two linux
> systems. multicasting works , tomcat working on both system. ie.running
> examples...
> but session replication not working on both systems by using session.jsp
> file from net.
> 
> Dear , I need your help to achieve this.
> I want to deploy a war on one tomcat server and it should automatically
> deployed on second system.

Look at the FarmWarDEployer.

The docs haven't been written for this component but the Javadoc should
be enough to get you started:
http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/ha/deploy/FarmWarDeployer.html

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Dear, need your help -- i am confiugrint tomcat clustering on two nodes

Posted by spideratd <em...@gmail.com>.
Dear,
i have configured tomcat 6.0.32 with mod_jk.so and apache on two linux
systems. multicasting works , tomcat working on both system. ie.running
examples...
but session replication not working on both systems by using session.jsp
file from net.

Dear , I need your help to achieve this.
I want to deploy a war on one tomcat server and it should automatically
deployed on second system. 

thanks a lot.
my email is emlinuxboy@gmail.com
         
          
-- 
View this message in context: http://old.nabble.com/Problem-with-tomcat-session-replication-tp28361225p30975423.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with tomcat session replication

Posted by o-rabbit <rj...@gmail.com>.


o-rabbit wrote:
> 
> 
> The multicast message is now not there but the second instance is still
> giving the following message:
> 
> INFO: Manager [localhost#/mycontext]: skipping state transfer. No members
> active in cluster group
> 
> I have followed the tomcat cluster howto guide closely, Given below is the
> config (I have mentioned the changes between config of the two nodes where
> ever applicable) :
> 
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
>                  channelSendOptions="8">
> 
>          
>           <Manager className="org.apache.catalina.ha.session.DeltaManager"
>                    expireSessionsOnShutdown="true"
>    				   useDirtyFlag="true" 
>                    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"  (in second node it is 4001)
>                       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=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.html;.*\.css;.*\.txt;"/>
>           <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"
> enabled="true" sessionIdAttribute="takeoverSessionid"/> 
> 
>           <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
>           <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
>         </Cluster>    
> 
> 
> 
> What is the problem?? Any pointers, tips or outright solution would be
> appreciated!!
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-with-tomcat-session-replication-tp28361225p28361309.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org