Hmm, not sure, but hasn't mcastAddr="srao" got to be an IP-Address? Or at least I hope that srao resolves well on all HOSTS-Files/DNS to a valid MCast-Adress which is configured on the tomcat-servers. Say, if you got one tomcat on each server and each server got one NIC, you need 2 ip-adresses on this NIC, maybe even 3 (Normal IP, multicast-addr, loadbalancing-addr). And the mcast-addr needs to be identical on all nic's and in the range of 224.0.0.0 - 239.255.255.255 if you want to stay in the conventions.
-- Bj�rn Andersen www.premiere.de -----Urspr�ngliche Nachricht----- Von: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 13:25 An: Tomcat Users List Betreff: RE: Tomcat clustering Hi Matt, Here's my cluster part of server.xml. And, "srao" is my machine name. <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" managerClassName="org.apache.catalina.cluster.session.DeltaManager" expireSessionsOnShutdown="false" useDirtyFlag="true"> <Membership className="org.apache.catalina.cluster.mcast.McastService" mcastAddr="srao" mcastPort="45564" mcastFrequency="500" mcastDropTime="3000"/> <Receiver className="org.apache.catalina.cluster.tcp.ReplicationListener" tcpListenAddress="127.0.0.1" tcpListenPort="4000" tcpSelectorTimeout="100" tcpThreadCount="6"/> <Sender className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" replicationMode="pooled"/> <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve" filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/> </Cluster> Thanks for the interest. Regards, Srinivas -----Original Message----- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 4:56 PM To: Tomcat Users List Subject: RE: Tomcat clustering I didnt mean mcastAddr, I meant tcpListenAddress, you have this set to 127.0.0.1 (Loopback) which is not available for external access so the mulitcast will never get to it. I'm not sure what's causing your exception though, you'd need to post the cluster part of your server.xml for a better guess at the problem. Ta Matt -----Original Message----- From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 12:05 To: Tomcat Users List Subject: RE: Tomcat clustering Matt, Thanks for the reply. Do you mean "mcastAddr" the loopback address? If yes, I am not using the root machine(Load Balancer, or the machine which takes request from clients) for clustering. And before that, seems that the cluster-nodes are not starting the cluster service. I am getting the following exception at the console. SEVERE: Unable to start cluster. java.lang.NullPointerException at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:804) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:756) at org.apache.catalina.cluster.MembershipFactory.getMembershipService(Membershi pFactory.java:93) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java :491) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1115) at org.apache.catalina.core.StandardHost.start(StandardHost.java:816) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:234 Can you please tell me where I was wrong. Regards, Srinivas -----Original Message----- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 4:17 PM To: Tomcat Users List Subject: RE: Tomcat clustering I think you may have 2 problems here, firstly the port has to be the same accross all the tomcats and secondly (I could be wrong about this one) but I think by specifying the loopback address as the listen address means that it wont listen on the external interface, therefore the multicast will never be heard. Ta Matt -----Original Message----- From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 11:26 To: Tomcat Users List Subject: Tomcat clustering I am getting problems in configuring my tomcat for clustering. Nodes are not recognizing each other. "mcastAddr" has the same IP for all the nodes. Can someone tell what this property is for. My tcpListenAddress is 127.0.0.1 for all the nodes but port is different. In my rules.xml in the Load Balancer, I am giving the machine names for "tcpListenAddress". Still it is not working. Is there anything to be done. Why my nodes are not recognizing each other. I appreciate any help. Regards, Srinivas --------------------------------------------------------------------- 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]
