How to start JBoss EAP 6 in Dual Stack with Clustering ?
pradeepsixer Oct 10, 2013 5:42 AMI have Jboss EAP 6 and i want to start it in dual stack with Clustering.
So i have modified the standalone.conf with the following :
JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=false -Djgroups.bind_addr=::1"
And I start the server with the following :
standalone.sh -b=:: -bmanagement=:: --server-config=standalone-ha.xml -u ff0e::1
This seems to work fine with JBoss running in Normal mode. But when I run in HA mode, this does not work and produces the following error :
Error starting advertise listener: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) [rt.jar:1.6.0_16]
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299) [rt.jar:1.6.0_16]
at java.net.MulticastSocket.setInterface(MulticastSocket.java:420) [rt.jar:1.6.0_16]
at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.init(AdvertiseListenerImpl.java:151)
at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.start(AdvertiseListenerImpl.java:165)
at org.jboss.modcluster.ModClusterService.init(ModClusterService.java:183)
at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.init(CatalinaEventHandlerAdapter.java:263)
at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.start(CatalinaEventHandlerAdapter.java:104)
at org.jboss.as.modcluster.ModClusterService.start(ModClusterService.java:112)
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82) [jboss-as-clustering-common-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_16]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_16]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.