ActiveMQ can't be bound to 0.0.0.0 in Wildfly 10.0.0.CR2 in profile standalone-full-ha -
when download fresh copy of wildfly 10 rc2, , try run using
bin/standalone.sh -c=standalone-full-ha.xml -b=0.0.0.0
i receive exception.
08:21:12,870 error [org.jboss.msc.service.fail] (msc service thread 1-8) msc000001: failed start service jboss.messaging-activemq.default: org.jboss.msc.service.startexception in service jboss.messaging-activemq.default: wflymsgamq0033: failed start service @ org.wildfly.extension.messaging.activemq.activemqserverservice.start(activemqserverservice.java:307) @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1948) @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1881) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: java.security.privilegedactionexception: java.net.bindexception: [udp] /0.0.0.0 not valid address on local network interface @ org.wildfly.security.manager.wildflysecuritymanager.dochecked(wildflysecuritymanager.java:640) @ org.jboss.as.clustering.jgroups.jchannelfactory.createchannel(jchannelfactory.java:99) @ org.wildfly.extension.messaging.activemq.activemqserverservice.start(activemqserverservice.java:247) ... 5 more caused by: java.net.bindexception: [udp] /0.0.0.0 not valid address on local network interface @ org.jgroups.util.util.checkifvalidaddress(util.java:3522) @ org.jgroups.stack.configurator.ensurevalidbindaddresses(configurator.java:903) @ org.jgroups.stack.configurator.setupprotocolstack(configurator.java:118) @ org.jgroups.stack.configurator.setupprotocolstack(configurator.java:57) @ org.jgroups.stack.protocolstack.setup(protocolstack.java:477) @ org.jgroups.jchannel.init(jchannel.java:853) @ org.jgroups.jchannel.<init>(jchannel.java:159) @ org.jboss.as.clustering.jgroups.jchannelfactory$1.run(jchannelfactory.java:96) @ org.jboss.as.clustering.jgroups.jchannelfactory$1.run(jchannelfactory.java:93) @ org.wildfly.security.manager.wildflysecuritymanager.dochecked(wildflysecuritymanager.java:636) ... 7 more 08:21:12,875 error [org.jboss.as.controller.management-operation] (controller boot thread) wflyctl0013: operation ("add") failed - address: ([ ("subsystem" => "messaging-activemq"), ("server" => "default") ]) - failure description: {"wflyctl0080: failed services" => {"jboss.messaging-activemq.default" => "org.jboss.msc.service.startexception in service jboss.messaging-activemq.default: wflymsgamq0033: failed start service caused by: java.security.privilegedactionexception: java.net.bindexception: [udp] /0.0.0.0 not valid address on local network interface caused by: java.net.bindexception: [udp] /0.0.0.0 not valid address on local network interface"}}
i can run same wildfly in full , ha modes without problem. do wrong , how rid of exception?
the address 0.0.0.0 not pass jgroups validation. should recognized interfaces, jgroups treats regular ip address. such interface not exist in os. workaround need set explicitly network interface jgroups in standalone-full-ha.xml. next reference in jgroups settings. e.g.
<interfaces> <interface name="jgroups-intf"> <nic name="eth0"/> </interface> </interfaces>
and
<socket-binding-group name="standard-sockets" default-interface="any" port-offset="${jboss.socket.binding.port-offset:0}"> ... <socket-binding name="jgroups-mping" interface="jgroups-intf" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/> <socket-binding name="jgroups-tcp" interface="jgroups-intf" port="7600"/> <socket-binding name="jgroups-tcp-fd" interface="jgroups-intf" port="57600"/> <socket-binding name="jgroups-udp" interface="jgroups-intf" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/> <socket-binding name="jgroups-udp-fd" interface="jgroups-intf" port="54200"/> <socket-binding name="jgroups-tcp-hq" interface="jgroups-intf" port="7660"/> <socket-binding name="jgroups-tcp-hq-fd" interface="jgroups-intf" port="7670"/> <socket-binding name="modcluster" interface="jgroups-intf" port="0" multicast-address="224.0.1.188" multicast-port="23364"/> </socket-binding-group>
Comments
Post a Comment