Clustering JBoss 5.1 on Windows XP
gotamo Jul 19, 2011 6:41 AMHi all.
I'm trying to stur JBoss 5.1 on Windows XP in a single pc, so I have copied the all directory in two directories named node1 and node2 and the I have used the the following scripts to lanch the two instance:
- run.bat -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-01 -c node1 -g cluster_avic -u 238.255.100.101 -b localhost
- run.bat -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-02 -c node2 -g cluster_avic -u 238.255.100.101 -b localhost
When I start the first node all is ok, but when I do the same on the second node I receive the following error reported below.
For more help I have attached the server.log file of the two instance.
Thanks in advance for any help,
Massimo.
---------------------------------------------------------
GMS: address is 127.0.0.1:2881 (cluster=cluster_avic-HAPartitionCache)
---------------------------------------------------------
2011-07-19 11:37:11,718 INFO [org.jboss.cache.RPCManagerImpl] (main) Received new cluster view: [127.0.0.1:2881|0] [127.0.0.1:2881]
2011-07-19 11:37:11,718 INFO [org.jboss.cache.RPCManagerImpl] (main) Cache local address is 127.0.0.1:2881
2011-07-19 11:37:11,781 INFO [org.jboss.cache.RPCManagerImpl] (main) state was retrieved successfully (in 2,03 seconds)
2011-07-19 11:37:11,828 INFO [org.jboss.cache.factories.ComponentRegistry] (main) JBoss Cache version: JBossCache 'Cascabel' 3.1.0.GA
2011-07-19 11:37:11,828 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=HAPartition state=Create
org.jgroups.ChannelException: failed to start protocol stack
at org.jgroups.JChannel.startStack(JChannel.java:1620)
at org.jgroups.JChannel.connect(JChannel.java:366)
at org.jboss.ha.framework.server.ClusterPartition$ChannelConnectTask.run(ClusterPartition.java:185)
at org.jboss.util.threadpool.RunnableTaskWrapper.run(RunnableTaskWrapper.java:147)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: problem creating sockets (bind_addr=localhost/127.0.0.1, mcast_addr=null)
at org.jgroups.protocols.UDP.start(UDP.java:389)
at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:121)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:410)
at org.jgroups.JChannel.startStack(JChannel.java:1617)
... 6 more
Caused by: java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
at java.net.DatagramSocket.bind(DatagramSocket.java:368)
at java.net.MulticastSocket.<init>(MulticastSocket.java:147)
at java.net.MulticastSocket.<init>(MulticastSocket.java:112)
at org.jgroups.protocols.UDP.createSockets(UDP.java:503)
at org.jgroups.protocols.UDP.start(UDP.java:385)
... 9 more
2011-07-19 11:37:11,843 INFO [org.jboss.ha.framework.interfaces.HAPartition.cluster_avic] (main) Partition cluster_avic destroyed.
-
server.log.zip 5.9 KB
-
server.log.zip 4.2 KB