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.
Wednesday Sep 05, 2007
Build : GlassFish V2 b58c on Solaris
Namesake names of machines : Tiger.cat.com, Cactus.plant.com
Using the Command Line Interface of GlassFish, a cluster can be setup with ease across 2 machines. Heres how it can be done:
1. Download GF v2 b58c from https://glassfish.dev.java.net/downloads/v2-b58c.html
2. Unbundle GlassFish following the instructions and do a ant -f setup-cluster.xml to enable clustering support on the installation.
Do Step2 on both Tiger.cat.com and Cactus.plant.com
3. On Tiger.cat.com, do the following:
- Under {GF_install}/bin, do "asadmin start-domain" which will start up the default domain "domain1".
- Create a node-agent as using the command "asadmin create-node-agent --host localhost --port 4848 man-agent"
- Create a cluster with the command "asadmin create-cluster --host localhost --port 4848 cat-cluster"
- Create an instance with the command "asadmin create-instance --host localhost --port 4848 --nodeagent man-agent --cluster cat-cluster instance1"
Note that in all the above steps, 4848 is the admin port of the domain domain1.
- Start the node-agent : "asadmin start-node-agent --syncinstances=true man-agent"
The "syncinstances" flag starts up the cluster and instance as well. Its default value is false.
4. On Cactus.plant.com, do the following:
- Under {GF_install}/bin, execute "asadmin create-node-agent --host Tiger.cat.com --port 4848 animal-agent" to create a node-agent on this machine pointing to the DAS (Tiger.cat.com).
After this step, observe in the /nodeagents directory that animal-agent is created.
- Create an instance on this machine as "asadmin create-instance --host Tiger.cat.com --port 4848 --nodeagent animal-agent --cluster cat-cluster instance2"
- Start node-agent, while the other node-agent is running: "asadmin start-node-agent --syncinstances=true animal-agent"
2 machine cluster is successfully setup !!!
Have you filed a bug or an RFE? :)
So if other applications on the machine are set up...
This blog:
Awesome, thanks for posting this saved me a lot ti...