Skip to main content

Update to deploying webservices on Glassfish 3.1 cluster

Posted by bhaktimehta on October 11, 2010 at 10:13 AM PDT

This blog is a minor update to the previous entry of

Glassfish 3.1 is in active development and there are some changes since the last time I posted this blog.

Most of the steps remain same and I am using the same setup on 2 machines.


1. Install Glassfish 3.1 b23 from

2. DAS is my mac and other instance is on adc2180404

3. asadmin start-domain

Waiting for the server to start ..........
Successfully started the domain : domain1
domain  Location: /Users/bhakti/b23/glassfishv3/glassfish/domains/domain1
Log File: /Users/bhakti/b23/glassfishv3/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Debugging is enabled.  The debugging port is: 9009
Command start-domain executed successfully.

4.asadmin create-cluster mycluster

Command create-cluster executed successfully.

5.asadmin create-node-config --nodehost adcconf
Command create-node-config executed successfully.

6.Additional step (You need to specify the installdir param )

asadmin update-node-config --installdir
/scratch/bhamehta/b23/glassfishv3/glassfish adcconf

Command update-node-config executed successfully.

7.asadmin create-instance --cluster mycluster --node adcconf mycluster_i1

The instance mycluster_i1 was registered with the DAS.  You must run the following comand on the instance host to complete the instance creation:
 asadmin  --host bhakti-mehtas-macbook-pro.local --port 4848 create-local-instance --node adcconf mycluster_i1

Command create-instance executed successfully.


(On adc2180404)

8.asadmin  --host --port 4848 create-local-instance --node adcconf mycluster_i1
Rendezvoused with DAS on
Command create-local-instance executed successfully.


9.asadmin start-local-instance mycluster_i1

Waiting for the server to start ............
Successfully started the instance: mycluster_i1
instance Location: /scratch/bhamehta/b23/glassfishv3/glassfish/nodes/adcconf/mycluster_i1
Log File: /scratch/bhamehta/b23/glassfishv3/glassfish/nodes/adcconf/mycluster_i1/logs/server.log
Admin Port: 24849
Command start-local-instance executed successfully.


On Das

./asadmin deploy --target mycluster /Users/bhakti/ejbwsinwar/dist/ejbwsinwar.war

I tried deploying the war which we developed as part of this blog and could access the wsdl from the instance.