Re: Tomcat 7 Cluster Issue

2012-07-07 Thread Mark Thomas
On 15/03/2012 10:14, Pid wrote:
 On 12/03/2012 22:14, Bruce Pease wrote:
 I am using a windows 2003 server 32 bit standard edition SP2 with IIS 6.  I
 have an isapi_redirect.dll v.1.2.31 communicating to tomcat via ajp1.3.  JDK
 version was 7.03, and tomcat version is 7.0.26.  Tomcat is installed as a
 service using the service.bat, and I am running two containers in the
 clustered environment.  Session replication is in memory, and communication
 is limited to within the server, i.e. not to any external server. 

 I can provide complete configuration files or more detail if needed.

 Thanks very much for your help.
 
 Can you add the -Djava.net.preferIPv4Stack=true to your service startup
 settings?
 
 See thread: Re: Java 7 + Tomcat 6.0.35 + Win2k3 Problem for more details.

For the archives, this was a Tomcat bug fixed in 7.0.30.
See http://svn.apache.org/viewvc?rev=1358591view=rev

Mark

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



Re: Tomcat 7 Cluster Issue

2012-03-15 Thread Pid
On 12/03/2012 22:14, Bruce Pease wrote:
 I am using a windows 2003 server 32 bit standard edition SP2 with IIS 6.  I
 have an isapi_redirect.dll v.1.2.31 communicating to tomcat via ajp1.3.  JDK
 version was 7.03, and tomcat version is 7.0.26.  Tomcat is installed as a
 service using the service.bat, and I am running two containers in the
 clustered environment.  Session replication is in memory, and communication
 is limited to within the server, i.e. not to any external server. 
 
 I can provide complete configuration files or more detail if needed.
 
 Thanks very much for your help.

Can you add the -Djava.net.preferIPv4Stack=true to your service startup
settings?

See thread: Re: Java 7 + Tomcat 6.0.35 + Win2k3 Problem for more details.


p

 -Original Message-
 From: Pid [mailto:p...@pidster.com] 
 Sent: Monday, March 12, 2012 5:13 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Cluster Issue
 
 On 12/03/2012 17:30, Pid * wrote:
 I will try to reproduce using your config, shortly.
 
 The only warning I get on OSX with JDK 1.7.0 is that FarmWarDeployer only
 works when the Cluster is defined inside a Host.
 
 Can you provide as much detail as possible about your OS  JDK 7 version
 please?
 
 
 p
 
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.JvmRouteSessionIDBinderLi
 st
 e
 ner/

ClusterListener 
 className=org.apache.catalina.ha.session.ClusterSessionListener/

  /Cluster

  Realm
 className=org.apache.catalina.realm.LockOutRealm

Realm
 className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  /Realm

  Host name=localhost appBase=webapps
 unpackWARs=true
 autoDeploy=true

Valve
 className=org.apache.catalina.valves.AccessLogValve directory=logs
 prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t 
 quot;%rquot; %s %b/

  /Host
 
 
 


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


RE: Tomcat 7 Cluster Issue

2012-03-12 Thread Bruce Pease
You are correct.  I rolled back the jdk7 change, and the session replication
fired up without error.  I will hold off on the jdk 7 upgrade until I see the
okay on a subsequent release.  Thanks.

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Saturday, March 10, 2012 5:26 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Cluster Issue

On 09/03/2012 18:33, Bruce Pease wrote:
 I can try the rollback the jdk, and try that.  However, the issue 
 doesn't appear to be jdk related.

Plenty of changes to NIO in Java 7 AFAIK.
Let us know if Java 6 + Tomcat 7 presents the same problem.


p

 The migration was performed by completely removing the old containers, 
 installing tomcat 7 instances, updating all configuration using the 
 ones released in tomcat 7 version, recompiling all applications with 
 jdk 1.7 and tomcat 7 dependencies, and redeploying the applications.
 
 -Original Message-
 From: Daniel Mikusa [mailto:dmik...@vmware.com]
 Sent: Friday, March 09, 2012 1:02 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Cluster Issue
 
 On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat 
 7.0.26, and the jdk from 1.6 to 1.7.
 
 This is a major jump for both Tomcat  the JVM.  Have you considered 
 rolling back one of them to the previous version?
 
 For example, roll back the JDK to 1.6 and try just the upgrade to 
 Tomcat 7.0.26.
 
 Also, from a Tomcat standpoint, how did you perform the migration?  In 
 particular with your configuration files?
 
 Dan
 
 
 I am now seeing a clustering issue when I start a second instance on 
 the same server.  I have tried a few variations of the config 
 (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error 
 messages below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM
 org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

 at sun.nio.ch.Net.setIntOption0(Native Method)

 at sun.nio.ch.Net.setSocketOption(Net.java:279)

 at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

 at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

 at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

 at


org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.
 j
 ava:418
 )

 at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 
 max:1; Faulty members:tcp://{10, 103, 4, 70}:4021;

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(Par
 a
 llelNio
 Sender.java:187)

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessag
 e
 (Parall
 elNioSender.java:89)

 at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMes
 s
 age(Poo
 ledParallelSender.java:54)

 at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessa
 g
 e(Repli
 cationTransmitter.java:79)

 at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(Chann
 e
 lCoordi
 nator.java:78)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(C
 h
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchIntercep
 t
 or.send
 Message(MessageDispatchInterceptor.java:77)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(C
 h
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.send
 M
 essage(
 TcpFailureDetector.java:89)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(C
 h
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:
 2
 24)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:
 1
 82)

 at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.jav
 a
 :804)

 at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(Del
 t
 aManage
 r.java:830)

 at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManage
 r
 .java:7
 98)

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

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContex
 t

Re: Tomcat 7 Cluster Issue

2012-03-12 Thread Pid *
I will try to reproduce using your config, shortly.


p


On 12 Mar 2012, at 16:02, Bruce Pease bpe...@wth.com wrote:

 You are correct.  I rolled back the jdk7 change, and the session replication
 fired up without error.  I will hold off on the jdk 7 upgrade until I see the
 okay on a subsequent release.  Thanks.

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Saturday, March 10, 2012 5:26 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Cluster Issue

 On 09/03/2012 18:33, Bruce Pease wrote:
 I can try the rollback the jdk, and try that.  However, the issue
 doesn't appear to be jdk related.

 Plenty of changes to NIO in Java 7 AFAIK.
 Let us know if Java 6 + Tomcat 7 presents the same problem.


 p

 The migration was performed by completely removing the old containers,
 installing tomcat 7 instances, updating all configuration using the
 ones released in tomcat 7 version, recompiling all applications with
 jdk 1.7 and tomcat 7 dependencies, and redeploying the applications.

 -Original Message-
 From: Daniel Mikusa [mailto:dmik...@vmware.com]
 Sent: Friday, March 09, 2012 1:02 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Cluster Issue

 On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat
 7.0.26, and the jdk from 1.6 to 1.7.

 This is a major jump for both Tomcat  the JVM.  Have you considered
 rolling back one of them to the previous version?

 For example, roll back the JDK to 1.6 and try just the upgrade to
 Tomcat 7.0.26.

 Also, from a Tomcat standpoint, how did you perform the migration?  In
 particular with your configuration files?

 Dan


 I am now seeing a clustering issue when I start a second instance on
 the same server.  I have tried a few variations of the config
 (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error
 messages below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM
 org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

at sun.nio.ch.Net.setIntOption0(Native Method)

at sun.nio.ch.Net.setSocketOption(Net.java:279)

at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

at


 org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.
 j
 ava:418
 )

at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2
 max:1; Faulty members:tcp://{10, 103, 4, 70}:4021;

at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(Par
 a
 llelNio
 Sender.java:187)

at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessag
 e
 (Parall
 elNioSender.java:89)

at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMes
 s
 age(Poo
 ledParallelSender.java:54)

at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessa
 g
 e(Repli
 cationTransmitter.java:79)

at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(Chann
 e
 lCoordi
 nator.java:78)

at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(C
 h
 annelIn
 terceptorBase.java:79)

at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchIntercep
 t
 or.send
 Message(MessageDispatchInterceptor.java:77)

at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(C
 h
 annelIn
 terceptorBase.java:79)

at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.send
 M
 essage(
 TcpFailureDetector.java:89)

at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(C
 h
 annelIn
 terceptorBase.java:79)

at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:
 2
 24)

at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:
 1
 82)

at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.jav
 a
 :804)

at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(Del
 t
 aManage
 r.java:830)

at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManage
 r
 .java:7
 98)

at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150

Re: Tomcat 7 Cluster Issue

2012-03-12 Thread Pid
On 12/03/2012 17:30, Pid * wrote:
 I will try to reproduce using your config, shortly.

The only warning I get on OSX with JDK 1.7.0 is that FarmWarDeployer
only works when the Cluster is defined inside a Host.

Can you provide as much detail as possible about your OS  JDK 7 version
please?


p

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.JvmRouteSessionIDBinderList
 e
 ner/

ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/

  /Cluster

  Realm
 className=org.apache.catalina.realm.LockOutRealm

Realm
 className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  /Realm

  Host name=localhost appBase=webapps
 unpackWARs=true
 autoDeploy=true

Valve
 className=org.apache.catalina.valves.AccessLogValve directory=logs
 prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t
 quot;%rquot; %s %b/

  /Host



-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


RE: Tomcat 7 Cluster Issue

2012-03-12 Thread Bruce Pease
I am using a windows 2003 server 32 bit standard edition SP2 with IIS 6.  I
have an isapi_redirect.dll v.1.2.31 communicating to tomcat via ajp1.3.  JDK
version was 7.03, and tomcat version is 7.0.26.  Tomcat is installed as a
service using the service.bat, and I am running two containers in the
clustered environment.  Session replication is in memory, and communication
is limited to within the server, i.e. not to any external server. 

I can provide complete configuration files or more detail if needed.

Thanks very much for your help.

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Monday, March 12, 2012 5:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 7 Cluster Issue

On 12/03/2012 17:30, Pid * wrote:
 I will try to reproduce using your config, shortly.

The only warning I get on OSX with JDK 1.7.0 is that FarmWarDeployer only
works when the Cluster is defined inside a Host.

Can you provide as much detail as possible about your OS  JDK 7 version
please?


p

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.JvmRouteSessionIDBinderLi
 st
 e
 ner/

ClusterListener 
 className=org.apache.catalina.ha.session.ClusterSessionListener/

  /Cluster

  Realm
 className=org.apache.catalina.realm.LockOutRealm

Realm
 className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  /Realm

  Host name=localhost appBase=webapps
 unpackWARs=true
 autoDeploy=true

Valve
 className=org.apache.catalina.valves.AccessLogValve directory=logs
 prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t 
 quot;%rquot; %s %b/

  /Host



-- 

[key:62590808]



Re: Tomcat 7 Cluster Issue

2012-03-10 Thread Pid
On 09/03/2012 18:33, Bruce Pease wrote:
 I can try the rollback the jdk, and try that.  However, the issue doesn't
 appear to be jdk related.  

Plenty of changes to NIO in Java 7 AFAIK.
Let us know if Java 6 + Tomcat 7 presents the same problem.


p

 The migration was performed by completely removing the old containers,
 installing tomcat 7 instances, updating all configuration using the ones
 released in tomcat 7 version, recompiling all applications with jdk 1.7 and
 tomcat 7 dependencies, and redeploying the applications.
 
 -Original Message-
 From: Daniel Mikusa [mailto:dmik...@vmware.com] 
 Sent: Friday, March 09, 2012 1:02 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Cluster Issue
 
 On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat 
 7.0.26, and the jdk from 1.6 to 1.7.
 
 This is a major jump for both Tomcat  the JVM.  Have you considered rolling
 back one of them to the previous version?
 
 For example, roll back the JDK to 1.6 and try just the upgrade to Tomcat
 7.0.26.
 
 Also, from a Tomcat standpoint, how did you perform the migration?  In
 particular with your configuration files?
 
 Dan
 
 
 I am now seeing a clustering issue when I start a second instance on 
 the same server.  I have tried a few variations of the config 
 (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error 
 messages below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM 
 org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

 at sun.nio.ch.Net.setIntOption0(Native Method)

 at sun.nio.ch.Net.setSocketOption(Net.java:279)

 at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

 at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

 at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

 at

 org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.j
 ava:418
 )

 at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 
 max:1; Faulty members:tcp://{10, 103, 4, 70}:4021;

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(Para
 llelNio
 Sender.java:187)

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage
 (Parall
 elNioSender.java:89)

 at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMess
 age(Poo
 ledParallelSender.java:54)

 at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessag
 e(Repli
 cationTransmitter.java:79)

 at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(Channe
 lCoordi
 nator.java:78)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchIntercept
 or.send
 Message(MessageDispatchInterceptor.java:77)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendM
 essage(
 TcpFailureDetector.java:89)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:2
 24)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:1
 82)

 at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java
 :804)

 at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(Delt
 aManage
 r.java:830)

 at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManager
 .java:7
 98)

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

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext
 .java:5
 282)

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

 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
 java:89
 5)

 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871
 )

 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java

Re: Tomcat 7 Cluster Issue

2012-03-09 Thread Daniel Mikusa
On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat 7.0.26, and
 the jdk from 1.6 to 1.7.

This is a major jump for both Tomcat  the JVM.  Have you considered
rolling back one of them to the previous version?

For example, roll back the JDK to 1.6 and try just the upgrade to Tomcat
7.0.26.

Also, from a Tomcat standpoint, how did you perform the migration?  In
particular with your configuration files?

Dan


 I am now seeing a clustering issue when I start a
 second instance on the same server.  I have tried a few variations of the
 config (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error messages
 below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

 at sun.nio.ch.Net.setIntOption0(Native Method)

 at sun.nio.ch.Net.setSocketOption(Net.java:279)

 at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

 at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

 at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.java:418
 )

 at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 max:1;
 Faulty members:tcp://{10, 103, 4, 70}:4021;

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(ParallelNio
 Sender.java:187)

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(Parall
 elNioSender.java:89)

 at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(Poo
 ledParallelSender.java:54)

 at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(Repli
 cationTransmitter.java:79)

 at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoordi
 nator.java:78)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.send
 Message(MessageDispatchInterceptor.java:77)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendMessage(
 TcpFailureDetector.java:89)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:224)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:182)

 at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:804)

 at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(DeltaManage
 r.java:830)

 at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManager.java:7
 98)

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

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5
 282)

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

 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:89
 5)

 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)

 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

 at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)

 at
 org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1599)

 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

 at java.util.concurrent.FutureTask.run(FutureTask.java:166)

 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:111
 0)

 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:60
 3)

 at java.lang.Thread.run(Thread.java:722)

 Caused by: java.net.SocketException: Invalid 

RE: Tomcat 7 Cluster Issue

2012-03-09 Thread Bruce Pease
I can try the rollback the jdk, and try that.  However, the issue doesn't
appear to be jdk related.  

The migration was performed by completely removing the old containers,
installing tomcat 7 instances, updating all configuration using the ones
released in tomcat 7 version, recompiling all applications with jdk 1.7 and
tomcat 7 dependencies, and redeploying the applications.

-Original Message-
From: Daniel Mikusa [mailto:dmik...@vmware.com] 
Sent: Friday, March 09, 2012 1:02 PM
To: Tomcat Users List
Subject: Re: Tomcat 7 Cluster Issue

On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat 
 7.0.26, and the jdk from 1.6 to 1.7.

This is a major jump for both Tomcat  the JVM.  Have you considered rolling
back one of them to the previous version?

For example, roll back the JDK to 1.6 and try just the upgrade to Tomcat
7.0.26.

Also, from a Tomcat standpoint, how did you perform the migration?  In
particular with your configuration files?

Dan


 I am now seeing a clustering issue when I start a second instance on 
 the same server.  I have tried a few variations of the config 
 (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error 
 messages below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM 
 org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

 at sun.nio.ch.Net.setIntOption0(Native Method)

 at sun.nio.ch.Net.setSocketOption(Net.java:279)

 at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

 at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

 at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

 at

org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.j
 ava:418
 )

 at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 
 max:1; Faulty members:tcp://{10, 103, 4, 70}:4021;

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(Para
 llelNio
 Sender.java:187)

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage
 (Parall
 elNioSender.java:89)

 at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMess
 age(Poo
 ledParallelSender.java:54)

 at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessag
 e(Repli
 cationTransmitter.java:79)

 at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(Channe
 lCoordi
 nator.java:78)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchIntercept
 or.send
 Message(MessageDispatchInterceptor.java:77)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendM
 essage(
 TcpFailureDetector.java:89)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:2
 24)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:1
 82)

 at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java
 :804)

 at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(Delt
 aManage
 r.java:830)

 at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManager
 .java:7
 98)

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

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext
 .java:5
 282)

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

 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
 java:89
 5)

 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871
 )

 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

 at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)

 at
 org.apache.catalina.startup.HostConfig$DeployWar.run

RE: Tomcat 7 Cluster Issue

2011-02-23 Thread Bruce Pease
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:devli...@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

Re: Tomcat 7 Cluster Issue

2011-02-22 Thread Filip Hanik - Dev Lists

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