What's being logged there is the value that will be returned to naming clients trying
to discover HA-JNDI via multicast autodiscovery. Here's how the value is derived:
| String address = getBindAddress();
| /* An INADDR_ANY (0.0.0.0 || null) address is useless as the value
| sent to a remote client so check for this and use the local host
| address instead.
| */
| if (address == null || address.equals("0.0.0.0"))
| {
| address = InetAddress.getLocalHost().getHostAddress();
| }
|
So, if you're starting with -b 0.0.0.0 it's going to try to use the default
address for the host. Your machine must be configured such that that's the loopback
address rather than some external address.
Workarounds:
1) Don't use -b 0.0.0.0
2) Change your machine's network configuration such that
InetAddress.getLocalHost().getHostAddress() doesn't return the loopback address.
3) Change the HA-JNDI service's "BindAddress" config from
${jboss.bind.address} to some other system property and then use -D at startup to set that
property to a non-loopback address.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244160#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...