This content has been marked as final.
Show 3 replies
-
1. Re: Cluster connecting to localhost loopback
brian.stansberry Jul 15, 2009 11:49 PM (in response to mohitanchlia)What AS version?
-
2. Re: Cluster connecting to localhost loopback
mohitanchlia Jul 16, 2009 12:16 AM (in response to mohitanchlia)AS 4.2
-
3. Re: Cluster connecting to localhost loopback
brian.stansberry Jul 16, 2009 3:56 PM (in response to mohitanchlia)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.