admin@glassfish.java.net

Schrödinger's instance

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Mon, 21 Jun 2010 15:41:06 -0400

The CLI says:

hostname%./asadmin start-instance instance1
Command start-instance executed successfully.

The server (DAS) log says:

[#|2010-06-21T15:37:16.240-0400|INFO|glassfish3.1|null|
_ThreadID=41;_ThreadName=Thread-1;|There is a process already using
the admin port 25848 -- it probably is another instance of a GlassFish
server.|#]
[#|2010-06-21T15:37:16.241-0400|INFO|glassfish3.1|null|
_ThreadID=41;_ThreadName=Thread-1;|Command start-local-instance
failed.|#]

So did it work or fail? FWIW, if I then list instances:

hostname% /Users/bobby/work/ws/v3/distributions/glassfish/target/
glassfishv3/glassfish/bin/asadmin list-instances
instance1 not running
instance2 running

But hitting the http listener port in a browser shows it's running. So
it's either running or not running. :)