You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bruce Pease <bp...@wth.com> on 2011/02/23 00:02:05 UTC

Tomcat 7 Cluster Issue

Good Afternoon:

 

I am running Windows server 2008 with Oracle/Sun jdk 1.6u24 and Tomcat 7.0.8.
Windows server 2008 multicast is defaulted on.  I am attempting to set up a
cluster (config that currenly works in Windows server 2000 and tomcat 6), and
getting the exception listed below.  I haven't been able to find a
configuration change from Tomcat 6 to 7 that might be causing this error.  I
have included the cluster configuration as well.  Any assistance would be
appreciated.  

 

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="11">
<Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="true" notifyListenersOnReplication="true"/>

                <Channel
className="org.apache.catalina.tribes.group.GroupChannel">

                <Membership
className="org.apache.catalina.tribes.membership.McastService"
address="228.0.0.45"  bind="10.103.4.70" port="45564" frequency="500"
dropTime="3000"/>

                <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="10.103.4.70"  port="4220" autoBind="100" selectorTimeout="100"
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.MessageDispatch15Int
erceptor"/>

                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.ThroughputIntercepto
r"/>

                </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"/>

                <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>

 

Feb 22, 2011 5:48:11 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
startInternal

SEVERE: Unable to start cluster.

org.apache.catalina.tribes.ChannelException: java.net.SocketException: An
operation was attempted on something that is not a socket; No faulty members
identified.

                at
org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoor
dinator.java:178)

                at
org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.
java:99)

                at
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
torBase.java:150)

                at
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
torBase.java:150)

                at
org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.star
t(MessageDispatchInterceptor.java:153)

                at
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
torBase.java:150)

                at
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
torBase.java:150)

                at
org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:416)

                at
org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.ja
va:671)

                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

                at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1026)

                at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)

                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

                at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1035)

                at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291
)

                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

                at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:4
43)

                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

                at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:724
)

                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

                at
org.apache.catalina.startup.Catalina.start(Catalina.java:620)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:304)

                at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 

Bruce D. Pease
Technical Team Lead - Web Applications
CruiseOne(r) <http://www.cruiseone.com/>  & Cruises Inc(tm)
<http://www.cruisesinc.com/> 
1201 W. Cypress Creek Road, Suite 100
Fort Lauderdale, FL 33309-1955
954-958-3654 (direct) | 954-958-3665 (fax)
bpease@wth.com <ma...@wth.com> 

 


RE: Tomcat 7 Cluster Issue

Posted by Bruce Pease <bp...@wth.com>.
Thanks, that seems to have fixed the issue.  I'm assuming this won't be a
problem since we only have a single NIC with multiple IPs on that machine.
I'll test session failover and verify it.  Thanks very much!

-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: Tuesday, February 22, 2011 6:49 PM
To: users@tomcat.apache.org
Subject: Re: Tomcat 7 Cluster Issue

It can probably be fixed, there are a few references to this
http://www.techienuggets.com/CommentDetail?tx=355312
https://issues.jboss.org/browse/JGRP-777

I'd have to reproduce it, so that I can fix it/work around it. I will 
open a bugzilla item with this

In the meantime, does this still happen if you remove the "bind" attribute?

best
Filip


On 02/22/2011 04:02 PM, Bruce Pease wrote:
> Good Afternoon:
>
>
>
> I am running Windows server 2008 with Oracle/Sun jdk 1.6u24 and Tomcat
7.0.8.
> Windows server 2008 multicast is defaulted on.  I am attempting to set up a
> cluster (config that currenly works in Windows server 2000 and tomcat 6),
and
> getting the exception listed below.  I haven't been able to find a
> configuration change from Tomcat 6 to 7 that might be causing this error.
I
> have included the cluster configuration as well.  Any assistance would be
> appreciated.
>
>
>
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> channelSendOptions="11">
> <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="true" notifyListenersOnReplication="true"/>
>
>                  <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
>
>                  <Membership
> className="org.apache.catalina.tribes.membership.McastService"
> address="228.0.0.45"  bind="10.103.4.70" port="45564" frequency="500"
> dropTime="3000"/>
>
>                  <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> address="10.103.4.70"  port="4220" autoBind="100" selectorTimeout="100"
> 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.MessageDispatch15Int
> erceptor"/>
>
>                  <Interceptor
>
className="org.apache.catalina.tribes.group.interceptors.ThroughputIntercepto
> r"/>
>
>                  </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"/>
>
>                  <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>
>
>
>
> Feb 22, 2011 5:48:11 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
> startInternal
>
> SEVERE: Unable to start cluster.
>
> org.apache.catalina.tribes.ChannelException: java.net.SocketException: An
> operation was attempted on something that is not a socket; No faulty
members
> identified.
>
>                  at
>
org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoor
> dinator.java:178)
>
>                  at
>
org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.
> java:99)
>
>                  at
>
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
>
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
>
org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.star
> t(MessageDispatchInterceptor.java:153)
>
>                  at
>
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
>
org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
> org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:416)
>
>                  at
>
org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.ja
> va:671)
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
>
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1026)
>
>                  at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
>
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1035)
>
>                  at
>
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291
> )
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
>
org.apache.catalina.core.StandardService.startInternal(StandardService.java:4
> 43)
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
>
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:724
> )
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
> org.apache.catalina.startup.Catalina.start(Catalina.java:620)
>
>                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                  at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>                  at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
> java:25)
>
>                  at java.lang.reflect.Method.invoke(Method.java:597)
>
>                  at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:304)
>
>                  at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
>
>
> Bruce D. Pease
> Technical Team Lead - Web Applications
> CruiseOne(r)<http://www.cruiseone.com/>   &  Cruises Inc(tm)
> <http://www.cruisesinc.com/>
> 1201 W. Cypress Creek Road, Suite 100
> Fort Lauderdale, FL 33309-1955
> 954-958-3654 (direct) | 954-958-3665 (fax)
> bpease@wth.com<ma...@wth.com>
>
>
>
>
>    


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


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


Re: Tomcat 7 Cluster Issue

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
It can probably be fixed, there are a few references to this
http://www.techienuggets.com/CommentDetail?tx=355312
https://issues.jboss.org/browse/JGRP-777

I'd have to reproduce it, so that I can fix it/work around it. I will 
open a bugzilla item with this

In the meantime, does this still happen if you remove the "bind" attribute?

best
Filip


On 02/22/2011 04:02 PM, Bruce Pease wrote:
> Good Afternoon:
>
>
>
> I am running Windows server 2008 with Oracle/Sun jdk 1.6u24 and Tomcat 7.0.8.
> Windows server 2008 multicast is defaulted on.  I am attempting to set up a
> cluster (config that currenly works in Windows server 2000 and tomcat 6), and
> getting the exception listed below.  I haven't been able to find a
> configuration change from Tomcat 6 to 7 that might be causing this error.  I
> have included the cluster configuration as well.  Any assistance would be
> appreciated.
>
>
>
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> channelSendOptions="11">
> <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="true" notifyListenersOnReplication="true"/>
>
>                  <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
>
>                  <Membership
> className="org.apache.catalina.tribes.membership.McastService"
> address="228.0.0.45"  bind="10.103.4.70" port="45564" frequency="500"
> dropTime="3000"/>
>
>                  <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> address="10.103.4.70"  port="4220" autoBind="100" selectorTimeout="100"
> 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.MessageDispatch15Int
> erceptor"/>
>
>                  <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.ThroughputIntercepto
> r"/>
>
>                  </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"/>
>
>                  <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>
>
>
>
> Feb 22, 2011 5:48:11 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
> startInternal
>
> SEVERE: Unable to start cluster.
>
> org.apache.catalina.tribes.ChannelException: java.net.SocketException: An
> operation was attempted on something that is not a socket; No faulty members
> identified.
>
>                  at
> org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoor
> dinator.java:178)
>
>                  at
> org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.
> java:99)
>
>                  at
> org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
> org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
> org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.star
> t(MessageDispatchInterceptor.java:153)
>
>                  at
> org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
> org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelIntercep
> torBase.java:150)
>
>                  at
> org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:416)
>
>                  at
> org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.ja
> va:671)
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1026)
>
>                  at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1035)
>
>                  at
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291
> )
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:4
> 43)
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:724
> )
>
>                  at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>
>                  at
> org.apache.catalina.startup.Catalina.start(Catalina.java:620)
>
>                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>                  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
> java:25)
>
>                  at java.lang.reflect.Method.invoke(Method.java:597)
>
>                  at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:304)
>
>                  at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
>
>
> Bruce D. Pease
> Technical Team Lead - Web Applications
> CruiseOne(r)<http://www.cruiseone.com/>   &  Cruises Inc(tm)
> <http://www.cruisesinc.com/>
> 1201 W. Cypress Creek Road, Suite 100
> Fort Lauderdale, FL 33309-1955
> 954-958-3654 (direct) | 954-958-3665 (fax)
> bpease@wth.com<ma...@wth.com>
>
>
>
>
>    


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