DUH!

thanks 

-----Original Message-----
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 8:55 AM
To: Tomcat Users List
Subject: Re: Trying to get a Cluster/Session Replication working

You're problem is obvious,
the application in "team.xml" is only running on box 2.
Make sure that all your clustered applications are deployed on all servers.

Filip

----- Original Message -----
From: "Randy" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 19, 2004 11:37 PM
Subject: RE: Trying to get a Cluster/Session Replication working


>>>I am saying. don't start the servers at the same time :)
Sorry Brain Flatulence

BTW, I am running these are user apache. That's how they run in production..

Here are the logs
BOX 1
=====================================================================
-bash-2.05b$ ./catalina.sh run
Using CATALINA_BASE:   /usr/java/jakarta-tomcat
Using CATALINA_HOME:   /usr/java/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp
Using JAVA_HOME:       /usr/java/j2sdk1.4.2_04
May 19, 2004 11:31:42 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 19, 2004 11:31:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4842 ms
May 19, 2004 11:31:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 19, 2004 11:31:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 19, 2004 11:31:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 19, 2004 11:31:43 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
May 19, 2004 11:31:43 PM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership
May 19, 2004 11:31:46 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
May 19, 2004 11:31:46 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/admin.xml
May 19, 2004 11:31:47 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
May 19, 2004 11:31:47 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
May 19, 2004 11:31:49 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
May 19, 2004 11:31:55 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/balancer.xml
May 19, 2004 11:31:56 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/manager.xml
May 19, 2004 11:31:56 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/ROOT
May 19, 2004 11:31:56 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/jsp-examples
May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/servlets-examples
May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/tomcat-docs
May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/webdav
May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 19, 2004 11:31:58 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
May 19, 2004 11:31:58 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 19, 2004 11:31:58 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
May 19, 2004 11:31:58 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 19, 2004 11:32:00 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 19, 2004 11:32:00 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/206
config=/usr/java/jakarta-tomcat/conf/jk2.properties
May 19, 2004 11:32:00 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17178 ms
May 19, 2004 11:32:43 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001
,66.208.187.21,4001, alive=6]
May 19, 2004 11:33:00 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
messageDataReceived
*********ERROR HERE ( I added this comment so you could see the error
easier)***************
WARNING: Context manager doesn't exist:
============================================================================
================
Box 2
============================================================================
================
./catalina.sh run
Using CATALINA_BASE:   /usr/java/jakarta-tomcat
Using CATALINA_HOME:   /usr/java/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp
Using JAVA_HOME:       /usr/java/j2sdk
May 19, 2004 11:32:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 19, 2004 11:32:30 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7653 ms
May 19, 2004 11:32:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 19, 2004 11:32:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 19, 2004 11:32:31 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 19, 2004 11:32:31 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
May 19, 2004 11:32:31 PM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership
May 19, 2004 11:32:32 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001
,66.208.187.70,4001, alive=55740]
May 19, 2004 11:32:33 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
May 19, 2004 11:32:33 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/admin.xml
May 19, 2004 11:32:37 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
May 19, 2004 11:32:37 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
May 19, 2004 11:32:39 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
May 19, 2004 11:32:47 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/balancer.xml
May 19, 2004 11:32:48 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/manager.xml
May 19, 2004 11:32:49 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/team.xml
May 19, 2004 11:32:50 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:
May 19, 2004 11:32:50 PM org.apache.catalina.cluster.session.DeltaManager
start

*********ERROR HERE ( I added this comment so you could see the error
easier)

***************WARNING: Manager[], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001,66.20
8.187.70,4001, alive=74610]. This operation will timeout if no session state
has been received within 60 seconds
May 19, 2004 11:33:51 PM org.apache.catalina.cluster.session.DeltaManager
start
SEVERE: Manager[], No session state received, timing out.

May 19, 2004 11:33:51 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/jsp-examples
May 19, 2004 11:33:51 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/servlets-examples
May 19, 2004 11:33:51 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/tomcat-docs
May 19, 2004 11:33:52 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:/usr/java/jakarta-tomcat-5.0.24/webapps/webdav
May 19, 2004 11:33:53 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 19, 2004 11:33:53 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 19, 2004 11:33:53 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/80
config=/usr/java/jakarta-tomcat/conf/jk2.properties
May 19, 2004 11:33:54 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 83733 ms


Filip

-----Original Message-----
From: Randy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 4:40 PM
To: 'Tomcat Users List'
Subject: RE: Trying to get a Cluster/Session Replication working


So I added  LD_ASSUME_KERNEL=2.4 and exported it in catalina.sh

But are saying I have to start them at the exact same time. That is not very
possible in my envirnment. They are diffent sized boxes , so one starts
faster than the other

I still get the same two errors

Randy

-----Original Message-----
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 4:02 PM
To: Tomcat Users List
Subject: Re: Trying to get a Cluster/Session Replication working

two things:
1. export LD_ASSUME_KERNEL=2.4 before you start tomcat (add it to your
startscript) 2. Starting the two instances at the exact same time,
   no instance has a state to replicate, wait 5 seconds with one
   once the servers have been running for a while, it will request state
from your longest
   running server

Filip

----- Original Message -----
From: "Randy" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 19, 2004 3:21 PM
Subject: Trying to get a Cluster/Session Replication working


Hello,
(sorry I could not search the mail archives, for some reason the site is
down)

I am following
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html and
trying to get Cluster/Session Replication

I have commented out the Cluster part in the sample server.xml

I have two boxes runnnig rh9, with tomcat 5

When I start up box two

Box 1 gets the error
==================================
INFO: Server startup in 14355 ms
May 19, 2004 3:04:19 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001
,66.208.187.21,4001, alive=31]
May 19, 2004 3:04:24 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
messageDataReceived
WARNING: Context manager doesn't exist:
May 19, 2004 3:04:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberDisappeared
INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.2
1:4001,66.208.187.21,4001, alive=14390]
May 19, 2004 3:05:41 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001
,66.208.187.21,4001, alive=31]
May 19, 2004 3:05:47 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
messageDataReceived
WARNING: Context manager doesn't exist:

Box 2 gets the error
==================================
INFO: Starting clustering manager...:
May 19, 2004 3:05:35 PM org.apache.catalina.cluster.session.DeltaManager
start
WARNING: Manager[], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001,66.20
8.187.70,4001, alive=121560]. This operation will timeout if no session
state has been received within 60 seconds May 19, 2004 3:06:35 PM
org.apache.catalina.cluster.session.DeltaManager
start
SEVERE: Manager[], No session state received, timing out.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to