You're right so : 1 - I reboot my too servers agnes : 192.168.2.102 and ovea-inspiron : 192.168.2.103 2 - I test the multicat on each server
for that, I start on agnes the command java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 ovea-inspiron output : Usage MCaster [address port message] BEGIN TO RECEIVE SENT:ovea-inspiron1 RECEIVED:ovea-inspiron1 FROM /192.168.2.102:45564 BEGIN TO RECEIVE SENT:ovea-inspiron2 RECEIVED:ovea-inspiron2 FROM /192.168.2.102:45564 BEGIN TO RECEIVE ... a tcpdump on agnes output : 12:03:56.160976 IP 192.168.2.102.45564 > all-systems.mcast.net.45564: UDP, length 14 12:03:59.165908 IP 192.168.2.102.45564 > all-systems.mcast.net.45564: UDP, length 14 12:04:02.170789 IP 192.168.2.102.45564 > all-systems.mcast.net.45564: UDP, length 14 12:04:05.175930 IP 192.168.2.102.45564 > all-systems.mcast.net.45564: UDP, length 14 12:04:08.180810 IP 192.168.2.102.45564 > all-systems.mcast.net.45564: UDP, length 14 ... a tcpdump on ovea-inspiron output : 12:00:24.229852 IP AGNES.45564 > ALL-SYSTEMS.MCAST.NET.45564: UDP, length 15 12:00:27.234391 IP AGNES.45564 > ALL-SYSTEMS.MCAST.NET.45564: UDP, length 15 ... I stop the process on agnes and on ovea-inspiron start comand : java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 agnes Usage MCaster [address port message] BEGIN TO RECEIVE RECEIVED:agnes1 FROM /192.168.2.103:45566 SENT:agnes1 BEGIN TO RECEIVE SENT:agnes2 RECEIVED:agnes2 FROM /192.168.2.103:45566 SENT:agnes3 BEGIN TO RECEIVE RECEIVED:agnes3 FROM /192.168.2.103:45566 a tcpdump on agnes output : 12:12:48.210143 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 6 12:12:51.264541 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 6 12:12:54.396574 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 7 a tcpdump on ovea-inspiron output : 12:27:10.603013 IP ovea-inspiron.45566 > all-systems.mcast.net.45566:UDP, length 8 12:27:13.855782 IP ovea-inspiron.45566 > all-systems.mcast.net.45566:UDP, length 8 12:27:16.863749 IP ovea-inspiron.45566 > all-systems.mcast.net.45566:UDP, length 8 Ok here first problem in the first server name of agnes is not resolved !!!! so i take a look on my hosts and a see the problem !!!! fuck ... bad configuration it's 127.0.0.1 localhost agnes 192.168.2.103 ovea-inspiron but must be 127.0.0.1 localhost 192.168.2.102 agnes 192.168.2.103 ovea-inspiron same error on second server so i correct this mistake and retry the test ... ok name is resolved as well. Now i run the command simultany on two servers on agnes the command java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 ovea-inspiron and on ovea-inspiron start comand : java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 agnes the ouput as the same a the other tests but tcpdump info are now : on agnes 12:43:02.336748 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 7 12:43:02.395214 IP agnes.45564 > all-systems.mcast.net.45564: UDP, length 15 12:43:05.400696 IP agnes.45564 > all-systems.mcast.net.45564: UDP, length 15 12:43:05.506764 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 7 12:43:08.405287 IP agnes.45564 > all-systems.mcast.net.45564: UDP, length 15 12:43:08.604056 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 7 12:43:11.410371 IP agnes.45564 > all-systems.mcast.net.45564: UDP, length 15 12:43:11.608944 IP ovea-inspiron.45566 > all-systems.mcast.net.45566: UDP, length 7 on ovea-inspiron 12:45:55.861466 IP ovea-inspiron.45566 > all-systems.mcast.net.45566:UDP, length 7 12:45:57.983294 IP AGNES.45564 > all-systems.mcast.net.45564: UDP, length 14 12:45:58.914085 IP ovea-inspiron.45566 > all-systems.mcast.net.45566:UDP, length 7 12:46:00.988429 IP AGNES.45564 > all-systems.mcast.net.45564: UDP, length 15 12:46:01.918123 IP ovea-inspiron.45566 > all-systems.mcast.net.45566:UDP, length 7 Ok so now I think my multicast is OK no ? So now I use the two server configuration of my first post and i start the first server. the log is : Feb 15, 2006 4:00:26 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/sun-jdk-1.5.0.06/jre/lib/i386/client:/opt/sun-jdk-1.5.0.06/jre/lib/i386:/opt/sun-jdk-1.5.0.06/jre/../lib/i386 Feb 15, 2006 4:00:26 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 15, 2006 4:00:26 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 980 ms Feb 15, 2006 4:00:26 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 15, 2006 4:00:27 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.15 Feb 15, 2006 4:00:27 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Feb 15, 2006 4:00:27 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Feb 15, 2006 4:00:27 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Feb 15, 2006 4:00:27 PM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/192.168.2.102 Feb 15, 2006 4:00:27 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 4000 secs to establish cluster membership Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster deployment is watching /opt/java/appserver/tomcat-5.5.15/war-listen/ for changes. Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.session.JvmRouteBinderValve start INFO: JvmRouteBinderValve started Feb 15, 2006 4:00:31 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive cluster-1.0-SNAPSHOT.war Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Register manager /cluster-1.0-SNAPSHOT to cluster element Host with name localhost Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager at /cluster-1.0-SNAPSHOT Feb 15, 2006 4:00:31 PM org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager [/cluster-1.0-SNAPSHOT]: skipping state transfer. No members active in cluster group. Feb 15, 2006 4:00:33 PM org.apache.tapestry.ApplicationServlet init INFO: Initialized application servlet 'cluster': 889 millis to create HiveMind Registry, 1,887 millis overall. Feb 15, 2006 4:00:34 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 15, 2006 4:00:34 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 15, 2006 4:00:34 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/23 config=null Feb 15, 2006 4:00:34 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Feb 15, 2006 4:00:34 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 7699 ms when i start the second server the log is the same ;( But when i remove the mcastBindAddress="..." in the two server.xml file and i restart the two servers .... All is ok the second server is in the cluster Feb 15, 2006 4:15:18 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive cluster-1.0-SNAPSHOT.war Feb 15, 2006 4:15:18 PM org.apache.catalina.cluster.session.DeltaManagerstart INFO: Register manager /cluster-1.0-SNAPSHOT to cluster element Host with name localhost Feb 15, 2006 4:15:18 PM org.apache.catalina.cluster.session.DeltaManagerstart INFO: Starting clustering manager at /cluster-1.0-SNAPSHOT Feb 15, 2006 4:15:19 PM org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage INFO: SEND Feb 15, 2006:4:15:18 PM 11 192.168.2.102:4,000 GET-ALL-/cluster-1.0-SNAPSHOT Feb 15, 2006 4:15:19 PM org.apache.catalina.cluster.session.DeltaManagergetAllClusterSessions WARNING: Manager [/cluster-1.0-SNAPSHOT], requesting session state fromorg.apache.catalina.cluster.mcast.McastMember[tcp://192.168.2.102:4000,cluster1,192.168.2.102,4000, alive=19092]. This operation will timeout if no session state has been received within 60 seconds. and when a session is created on one nodethe other is notified : Feb 15, 2006 4:16:29 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster logReceiveMessage INFO: RECEIVE Feb 15, 2006:4:16:29 PM 12 192.168.2.103:4,001 A075861428D2CE5A0257DEF8B622839D.node02-1140038190628 true Feb 15, 2006 4:16:30 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster logReceiveMessage INFO: RECEIVE Feb 15, 2006:4:16:30 PM 7 192.168.2.103:4,001 A075861428D2CE5A0257DEF8B622839D.node02-1140038191128 true Feb 15, 2006 4:16:34 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster logSendMessage INFO: SEND Feb 15, 2006:4:16:34 PM 2 - A075861428D2CE5A0257DEF8B622839D.node02#-#localhost#-#/cluster-1.0-SNAPSHOT#-#0#-#1140038194813 I don't always know why I need remove my mcastBindAddress So a big thank you for all you help me to explore other way ;) On 2/15/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: David, you are all over the place. Slow down for a second. > my guess is that one of your interfaces is not doing what you think it > is doing. > > follow these simple steps > > 1. Make sure that your multicast is working > 2. Stop all your tomcat processes > 3. Make sure nothing else is broadcasting on the same mcast address > 4. Delete or archive all your previous logs > 5. Startup tomcat 1 - wait 10 seconds > 6. Startup tomcat 2 > > Then do the following > 7. Set tcpListenAddress="auto" in your server.xml file > 8. Repeat steps 1 through 6 > > 9. email the logs to the list > > our guess is that you have a networking problem, but you just don't dont > look into it close enough for yourself and then provide us with the info. > > Filip > > > > > David Avenante wrote: > > Yes all right ! > > > > INFO: Register manager /cluster-1.0-SNAPSHOT to cluster element Host > with > > name localhost > > Feb 15, 2006 10:47:32 AM > org.apache.catalina.cluster.session.DeltaManagerstart > > > > But Why !!!! > > my mcastAddress is good !!!!! > > > > now i' ve a new error > > > > Feb 15, 2006 10:50:41 AM > > > org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThreadpushQueuedMessages > > WARNING: Unable to asynchronously send session with > id=[GET-ALL-/cluster- > > 1.0-SNAPSHOT] - message will be ignored. > > java.net.ConnectException: Connection timed out > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > > > but it's a big progress ;) > > > > I got to verifiy if my ntp synchronisation between my server is OK ;) > > > > Thank you very much. > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >