We saw this problem recently. For some reason, the HAJNDI service's BindAddress 
attribute is initializing to 0.0.0.0. Actually, it seems to be hard coded that way, 
unless you override it with the startup option --host=<ip address>.

So with some debugging of the source code, I realized that the jnp naming context 
actually gets delivered the 0.0.0.0[:1100] address by the HAJNDI auto discovery 
listener, preventing the auto discovery recipient client from connecting.

The --host=<ip address> fixed the problem (once I realized that for some reason, only 
%1 and %2 were being passed to the java call in run.bat :( )

The docs imply that the --host=<ip address> is only necessary on multi-homed machines, 
 but in this instance, I would say it is mandatory. Alternately, HAJNDI should be 
changed to acquire a real IP address for it's BindAddress attribute.

This was observed on Win XP, but the problem, I think, is this:

1. HANamingService.AutomaticDiscovery.run() listens on the multicast port for auto 
disc. requests. 
2. When it gets one, it replies with the ip address determined ultimately from the the 
cluster-service.xml  HANaming service entry, BindAddress. 
3. In the default distribution, this value is configured as ${jboss.bind.address}.
4.  org.jboss.Main hard sets this value to "0.0.0.0" at startup unless the --host=<ip 
address> option is used, in which case, it is set to <ip address>.

Sorry for the rambling, and if I have incorrectly maligned someone's code.

Cheers.

//Nicholas

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822149#3822149

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822149


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to