<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
Hi I have been trying to enable clustering on 2 ubuntu machines on JBoss 3.2.8SP1( I cant move to JBoss 4 as my application is configurable for 3.2.8SP1 only) but the 2 machines are not able to discover each other, other machine is showing<BR>
<BR>
11:23:10,526 INFO [DefaultPartition] Number of cluster members: 1 <BR>
11:23:10,526 INFO [DefaultPartition] Other members: 0 <BR>
<BR>
both are having the same cluster-service file and have their IPV6, disabled can some one please help me in this ... <BR>
<BR>
<B>Here is the log on my machine </B><BR>
<BR>
========================================================================= <BR>
<BR>
JBoss Bootstrap Environment <BR>
<BR>
JBOSS_HOME: /home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1 <BR>
<BR>
JAVA: /usr/lib/jvm/java-6-sun-1.6.0.06//bin/java <BR>
<BR>
JAVA_OPTS: -server -Dprogram.name=run.sh <BR>
<BR>
CLASSPATH: /home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/bin/run.jar:/usr/lib/jvm/java-6-sun-1.6.0.06//lib/tools.jar <BR>
<BR>
========================================================================= <BR>
<BR>
11:22:20,032 INFO [Server] Starting JBoss (MX MicroKernel)... <BR>
11:22:20,199 INFO [Server] Release ID: JBoss [WonderLand] 3.2.8.SP1 (build: CVSTag=JBoss_3_2_8_SP1 date=200603031235) <BR>
11:22:20,200 INFO [Server] Home Dir: /home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1 <BR>
11:22:20,200 INFO [Server] Home URL: file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/ <BR>
11:22:20,201 INFO [Server] Patch URL: null <BR>
11:22:20,202 INFO [Server] Server Name: all <BR>
11:22:20,202 INFO [Server] Server Home Dir: /home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all <BR>
11:22:20,202 INFO [Server] Server Home URL: file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/ <BR>
11:22:20,202 INFO [Server] Server Temp Dir: /home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/tmp <BR>
11:22:20,203 INFO [Server] Root Deployment Filename: jboss-service.xml <BR>
11:22:24,687 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc. <BR>
11:22:24,687 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b22,Sun Microsystems Inc. <BR>
11:22:24,687 INFO [ServerInfo] OS-System: Linux 2.6.24-19-generic,i386 <BR>
11:22:28,063 INFO [Server] Core system initialized <BR>
11:22:45,167 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml <BR>
11:22:51,550 INFO [WebService] Using RMI server codebase: http://abhinav-desktop:8083/ <BR>
11:22:55,210 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory <BR>
11:23:06,249 INFO [SnmpAgentService] SNMP agent going active <BR>
11:23:06,486 INFO [RARMetaData] Required license terms present. See deployment descriptor. <BR>
11:23:06,571 INFO [RARMetaData] Loading JBoss Resource Adapter for JDBC 2 XA drivers <BR>
11:23:06,571 INFO [RARMetaData] Required license terms present. See deployment descriptor. <BR>
11:23:06,645 INFO [RARMetaData] Required license terms present. See deployment descriptor. <BR>
11:23:08,344 INFO [DefaultPartition] Initializing <BR>
11:23:08,496 INFO [UDP] unicast sockets will use interface 127.0.1.1 <BR>
11:23:08,503 INFO [UDP] socket information: <BR>
local_addr=abhinav-desktop:56543 (additional data: 14 bytes), mcast_addr=228.1.2.3:45566, bind_addr=/127.0.1.1, ttl=8 <BR>
sock: bound to 127.0.1.1:56543, receive buffer size=131071, send buffer size=131071 <BR>
mcast_recv_sock: bound to 127.0.1.1:45566, send buffer size=131071, receive buffer size=131071 <BR>
mcast_send_sock: bound to 127.0.1.1:54431, send buffer size=131071, receive buffer size=131071 <BR>
11:23:08,506 INFO [STDOUT] <BR>
------------------------------------------------------- <BR>
GMS: address is abhinav-desktop:56543 (additional data: 14 bytes) <BR>
------------------------------------------------------- <BR>
11:23:10,526 INFO [DefaultPartition] Number of cluster members: 1 <BR>
11:23:10,526 INFO [DefaultPartition] Other members: 0 <BR>
11:23:10,527 INFO [DefaultPartition] Fetching state (will wait for 60000 milliseconds): <BR>
11:23:10,528 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [127.0.1.1:1099] <BR>
11:23:10,626 INFO [DefaultPartition] I am (127.0.1.1:1099) received membershipChanged event: <BR>
11:23:10,678 INFO [DefaultPartition] Dead members: 0 ([]) <BR>
11:23:10,678 INFO [DefaultPartition] New Members : 0 ([]) <BR>
11:23:10,678 INFO [DefaultPartition] All Members : 1 ([127.0.1.1:1099]) <BR>
11:23:10,701 INFO [HANamingService] Listening on /0.0.0.0:1100 <BR>
11:23:10,751 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=127.0.1.1:1100 <BR>
11:23:13,838 INFO [orb] ORB run <BR>
11:23:14,303 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000010000000000000064000102000000000A3132372E302E312E31000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001] <BR>
11:23:14,527 INFO [MailService] Mail Service bound to java:/Mail <BR>
11:23:14,982 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=8;loopback=false;mcast_addr=230.1.2.3;mcast_port=45577;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true) <BR>
11:23:14,998 INFO [TreeCache] interceptor chain is: <BR>
class org.jboss.cache.interceptors.CallInterceptor <BR>
class org.jboss.cache.interceptors.LockInterceptor <BR>
class org.jboss.cache.interceptors.UnlockInterceptor <BR>
class org.jboss.cache.interceptors.ReplicationInterceptor <BR>
11:23:14,999 INFO [TreeCache] cache mode is REPL_ASYNC <BR>
11:23:15,055 INFO [UDP] unicast sockets will use interface 127.0.1.1 <BR>
11:23:15,059 INFO [UDP] socket information: <BR>
local_addr=abhinav-desktop:43561, mcast_addr=230.1.2.3:45577, bind_addr=/127.0.1.1, ttl=8 <BR>
sock: bound to 127.0.1.1:43561, receive buffer size=80000, send buffer size=131071 <BR>
mcast_recv_sock: bound to 127.0.1.1:45577, send buffer size=131071, receive buffer size=80000 <BR>
mcast_send_sock: bound to 127.0.1.1:50021, send buffer size=131071, receive buffer size=80000 <BR>
11:23:15,060 INFO [STDOUT] <BR>
------------------------------------------------------- <BR>
GMS: address is abhinav-desktop:43561 <BR>
------------------------------------------------------- <BR>
11:23:17,129 INFO [TreeCache] state could not be retrieved (must be first member in group) <BR>
11:23:17,129 INFO [TreeCache] viewAccepted(): new members: [abhinav-desktop:43561] <BR>
11:23:17,223 INFO [TreeCache] new cache is null (maybe first member in cluster) <BR>
11:23:17,431 INFO [Embedded] Catalina naming disabled <BR>
11:23:17,960 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080 <BR>
11:23:18,001 INFO [Catalina] Initialization processed in 523 ms <BR>
11:23:18,028 INFO [StandardService] Starting service jboss.web <BR>
11:23:18,031 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.30 <BR>
11:23:18,044 INFO [StandardHost] XML validation disabled <BR>
11:23:18,093 INFO [Catalina] Server startup in 66 ms <BR>
11:23:18,177 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/deploy/http-invoker.sar/invoker.war/ <BR>
11:23:19,204 INFO [TomcatDeployer] deploy, ctxPath=/jboss-net, warUrl=file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/deploy/jboss-net.sar/jboss-net.war/ <BR>
11:23:19,396 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/deploy/jbossweb-tomcat50.sar/ROOT.war/ <BR>
11:23:19,608 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ <BR>
11:23:19,801 INFO [DefaultDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI name 'java:/DefaultDS' <BR>
11:23:20,047 INFO [A] Bound to JNDI name: queue/A <BR>
11:23:20,048 INFO [B] Bound to JNDI name: queue/B <BR>
11:23:20,050 INFO [C] Bound to JNDI name: queue/C <BR>
11:23:20,051 INFO [D] Bound to JNDI name: queue/D <BR>
11:23:20,052 INFO [ex] Bound to JNDI name: queue/ex <BR>
11:23:20,078 INFO [testTopic] Bound to JNDI name: topic/testTopic <BR>
11:23:20,080 INFO [securedTopic] Bound to JNDI name: topic/securedTopic <BR>
11:23:20,082 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic <BR>
11:23:20,085 INFO [testQueue] Bound to JNDI name: queue/testQueue <BR>
11:23:20,125 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093 <BR>
11:23:20,215 INFO [DLQ] Bound to JNDI name: queue/DLQ <BR>
11:23:20,239 INFO [JmsXA] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name 'java:/JmsXA' <BR>
11:23:20,331 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/deploy/jmx-console.war/ <BR>
11:23:20,535 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/home/abhinav/Work/jboss_server/trial/jboss-3.2.8.SP1/server/all/deploy/management/web-console.war/ <BR>
11:23:21,524 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 <BR>
11:23:21,779 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009 <BR>
11:23:21,909 INFO [JkMain] Jk running ID=0 time=0/153 config=null <BR>
11:23:21,931 INFO [Server] JBoss (MX MicroKernel) [3.2.8.SP1 (build: CVSTag=JBoss_3_2_8_SP1 date=200603031235)] Started in 1m:1s:726ms <BR>
<BR>
<B>Here is my cluster-service.xml </B><BR>
<?xml version="1.0" encoding="UTF-8"?> <BR>
<BR>
<!-- ===================================================================== --> <BR>
<!-- --> <BR>
<!-- Sample Clustering Service Configuration --> <BR>
<!-- --> <BR>
<!-- ===================================================================== --> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<!-- ==================================================================== --> <BR>
<!-- Cluster Partition: defines cluster --> <BR>
<!-- ==================================================================== --> <BR>
<BR>
<BR>
<BR>
<!-- Name of the partition being built --> <BR>
${jboss.partition.name:DefaultPartition} <BR>
<!-- The address used to determine the node name --> <BR>
${jboss.bind.address} <BR>
<!-- Determine if deadlock detection is enabled --> <BR>
False <BR>
<BR>
<!-- Time in milliseconds to wait for state to be transferred --> <BR>
60000 <BR>
<BR>
<!-- The JGroups protocol configuration --> <BR>
<BR>
<BR>
<!-- UDP: if you have a multihomed machine, <BR>
set the bind_addr attribute to the appropriate NIC IP address --> <BR>
<!-- UDP: On Windows machines, because of the media sense feature <BR>
being broken with multicast (even after disabling media sense) <BR>
set the loopback attribute to true --> <BR>
<UDP mcast_addr="228.1.2.3" mcast_port="45566" <BR>
ip_ttl="8" ip_mcast="true" <BR>
mcast_send_buf_size="800000" mcast_recv_buf_size="150000" <BR>
ucast_send_buf_size="800000" ucast_recv_buf_size="150000" <BR>
loopback="false" /> <BR>
<PING timeout="2000" num_initial_members="3" <BR>
up_thread="true" down_thread="true" /> <BR>
<MERGE2 min_interval="10000" max_interval="20000" /> <BR>
<FD shun="true" up_thread="true" down_thread="true" <BR>
timeout="2500" max_tries="5" /> <BR>
<VERIFY_SUSPECT timeout="3000" num_msgs="3" <BR>
up_thread="true" down_thread="true" /> <BR>
<pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800" <BR>
max_xmit_size="8192" <BR>
up_thread="true" down_thread="true" /> <BR>
<UNICAST timeout="300,600,1200,2400,4800" window_size="100" min_threshold="10" <BR>
down_thread="true" /> <BR>
<pbcast.STABLE desired_avg_gossip="20000" <BR>
up_thread="true" down_thread="true" /> <BR>
<FRAG frag_size="8192" <BR>
down_thread="true" up_thread="true" /> <BR>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" <BR>
shun="true" print_local_addr="true" /> <BR>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true" /> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<!-- ==================================================================== --> <BR>
<!-- HA Session State Service for SFSB --> <BR>
<!-- ==================================================================== --> <BR>
<BR>
<BR>
jboss:service=${jboss.partition.name:DefaultPartition} <BR>
<!-- Name of the partition to which the service is linked --> <BR>
${jboss.partition.name:DefaultPartition} <BR>
<!-- JNDI name under which the service is bound --> <BR>
/HASessionState/Default <BR>
<!-- Max delay before cleaning unreclaimed state. <BR>
Defaults to 30*60*1000 => 30 minutes --> <BR>
0 <BR>
<BR>
<BR>
<!-- ==================================================================== --> <BR>
<!-- HA JNDI --> <BR>
<!-- ==================================================================== --> <BR>
<BR>
<BR>
jboss:service=${jboss.partition.name:DefaultPartition} <BR>
<!-- Name of the partition to which the service is linked --> <BR>
${jboss.partition.name:DefaultPartition} <BR>
<!-- bind address of HA JNDI RMI endpoint --> <BR>
${jboss.bind.address} <BR>
<!-- RmiPort to be used by the HA-JNDI service <BR>
once bound. 0 => auto. --> <BR>
1101 <BR>
<!-- Port on which the HA-JNDI stub is made available --> <BR>
1100 <BR>
<!-- Backlog to be used for client-server RMI <BR>
invocations during JNDI queries --> <BR>
50 <BR>
<BR>
<!-- Multicast Address and Group used for auto-discovery --> <BR>
${jboss.partition.udpGroup:230.0.0.4} <BR>
1102 <BR>
<BR>
<!-- IP Address to which should be bound: the Port, the RmiPort and <BR>
the AutoDiscovery multicast socket. --> <BR>
<!-- Client socket factory to be used for client-server <BR>
RMI invocations during JNDI queries --> <BR>
<!--attribute name="ClientSocketFactory">custom</attribute--> <BR>
<!-- Server socket factory to be used for client-server <BR>
RMI invocations during JNDI queries --> <BR>
<!--attribute name="ServerSocketFactory">custom</attribute--> <BR>
<BR>
${jboss.bind.address} <BR>
4447 <BR>
<!-- <BR>
0 <BR>
custom <BR>
custom <BR>
--> <BR>
<!-- ==================================================================== --> <BR>
<!-- Distributed cache invalidation --> <BR>
<!-- ==================================================================== --> <BR>
jboss:service=${jboss.partition.name:DefaultPartition} <BR>
jboss.cache:service=InvalidationManager <BR>
jboss.cache:service=InvalidationManager <BR>
${jboss.partition.name:DefaultPartition} <BR>
DefaultJGBridge <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<B>Here is my tc5-cluster-service.xml </B><BR>
<?xml version="1.0" encoding="UTF-8"?> <BR>
<BR>
<!-- ===================================================================== --> <BR>
<!-- --> <BR>
<!-- Customized TreeCache Service Configuration for Tomcat 5 Clustering --> <BR>
<!-- --> <BR>
<!-- ===================================================================== --> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<!-- ==================================================================== --> <BR>
<!-- Defines TreeCache configuration --> <BR>
<!-- ==================================================================== --> <BR>
<BR>
<BR>
<BR>
jboss:service=Naming <BR>
jboss:service=TransactionManager <BR>
<BR>
<!-- Configure the TransactionManager --> <BR>
org.jboss.cache.JBossTransactionManagerLookup <BR>
<BR>
<!-- <BR>
Isolation level : SERIALIZABLE <BR>
REPEATABLE_READ (default) <BR>
READ_COMMITTED <BR>
READ_UNCOMMITTED <BR>
NONE <BR>
--> <BR>
REPEATABLE_READ <BR>
<BR>
<!-- <BR>
Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC <BR>
--> <BR>
REPL_ASYNC <BR>
<BR>
<!-- Name of cluster. Needs to be the same for all clusters, in order <BR>
to find each other <BR>
--> <BR>
Tomcat-Cluster <BR>
<BR>
<!-- JGroups protocol stack properties. Can also be a URL, <BR>
e.g. file:/home/bela/default.xml <BR>
<BR>
--> <BR>
<BR>
<BR>
<BR>
<!-- UDP: if you have a multihomed machine, <BR>
set the bind_addr attribute to the appropriate NIC IP address, e.g bind_addr="192.168.0.2" <BR>
--> <BR>
<!-- UDP: On Windows machines, because of the media sense feature <BR>
being broken with multicast (even after disabling media sense) <BR>
set the loopback attribute to true --> <BR>
<UDP mcast_addr="230.1.2.3" mcast_port="45577" <BR>
ip_ttl="8" ip_mcast="true" <BR>
mcast_send_buf_size="150000" mcast_recv_buf_size="80000" <BR>
ucast_send_buf_size="150000" ucast_recv_buf_size="80000" <BR>
loopback="false"/> <BR>
<PING timeout="2000" num_initial_members="3" <BR>
up_thread="false" down_thread="false"/> <BR>
<MERGE2 min_interval="10000" max_interval="20000"/> <BR>
<FD_SOCK/> <BR>
<VERIFY_SUSPECT timeout="1500" <BR>
up_thread="false" down_thread="false"/> <BR>
<pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" <BR>
max_xmit_size="8192" up_thread="false" down_thread="false"/> <BR>
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" <BR>
down_thread="false"/> <BR>
<pbcast.STABLE desired_avg_gossip="20000" <BR>
up_thread="false" down_thread="false"/> <BR>
<FRAG frag_size="8192" <BR>
down_thread="false" up_thread="false"/> <BR>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" <BR>
shun="true" print_local_addr="true"/> <BR>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/> <BR>
<BR>
<BR>
<BR>
<!-- Max number of milliseconds to wait for a lock acquisition --> <BR>
15000
</BODY>
</HTML>