When this error occurs, check the following:
If the console window is still open, the expected message indicates that the default domain was started successfully.
If the console window is already closed, check for messages in the log file:
If startup was successful, the expected message is similar to that on the console, and appears at the end of the log file.
For more information about starting a domain, see Starting and Stopping a Domain in Oracle GlassFish Server 3.0.1 Administration Guide. To easily determine if a domain is running, use the asadmin list-domains command.
The server might be running at a different port number than expected, either because it was intentionally installed there, or because another server was already running on the default port when the server was installed.
Examine the server's configuration file:
Find the network-listener element.
Inspect the value of the port attribute.
Be sure to enter the correct port number when invoking the server.
A different port number was specified during installation.
A previous installation exists.