Shalini's Weblog

Troubleshooting - Cluster startup Failure

Tuesday Oct 30, 2007

Recently i had this problem.. I setup a cluster with an instance. But was not able to start it up. 

I got a series of  java.net.ConnectException: Connection refused exceptions and the instance did not startup.

What did the wonder?

 The /etc/hosts file had the following entries:

127.0.0.1 mymachine mymachine localhost

 When i commented out this line in the hosts file and add a physical IP entry like

129.xxx.xxx.xx mymachine

 and startup the instance, it goes through fine :)

 Reason

MQ needs the hostname to map to the absolute IP and not 127.0.0.1.


[3] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg
Comments:

Have you filed a bug or an RFE? :)

Posted by Alexis MP on October 30, 2007 at 02:16 PM IST #

So if other applications on the machine are set up such that the hostname MUST be mapped to 127.0.0.1 - what is the magic required to make Glassfish start using the address of one of the other network addresses on the machine?

Posted by Ed on December 17, 2008 at 04:15 PM IST #

This blog: http://blogs.sun.com/yirawan/entry/troubleshooting_jms_broker_on_glassfish explains it all, and has a fix.

Posted by Ed on December 18, 2008 at 02:59 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed