Followed cluster upgrade example from http://wikis.sun.com/display/GlassFish/V3.1ClusterUpgradeExample
After installing v2.1.1 and creating local cluster and instances,
a new virtual server "test-server" and http listener "test-listener-1" listening to port 7777 were created on cluster1-config. Deployed web application "hello" and made sure the web app is accessible on the instances and also on newly created http listener port 7777.
After installing v3.1, upgrade, and recreating instances, cluster cannot be started
bash-3.2$ ./asadmin start-cluster cluster1
in1: Could not start instance in1 on node na1 (amys-macbook-pro.local).
Command failed on node na1 (amys-macbook-pro.local): Waiting for in1 to start ................................Command start-local-instance failed.
Error starting instance in1.
The server exited prematurely with exit code 0.
[#|2010-11-30T16:44:37.223-0800|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|Shutting down v3 due to startup exception : No free port within range: 7777=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@367720d7|#]
server.log, v3 domain.xml, and v2 domain.xml are attached