command start-domain failed glassfish 4.1

2.8k Views Asked by At

I successfully installed glassfish 4.1 on my centos server via ssh but I am unable to start the server. when I type ./asadmin start-domain I got this error below.

Waiting for domain1 to start ......Error starting domain domain1.
The server exited prematurely with exit code 137.
Before it died, it produced the following output:
Launching GlassFish on Felix platform
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@33903879 in service registry.
Nov 24, 2014 10:42:08 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Nov 24, 2014 10:42:08 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.
Nov 24, 2014 10:42:08 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.

Command start-domain failed.

Can anyone help with this one?

Thanks.

1

There are 1 best solutions below

0
On

It seems that Glassfish cannot start because an address is trying to bind is already in use.

Shutting down server due to startup exception

java.net.BindException: Address already in use: bind

Try to edit the domain.xml.

/glassfish/domains/domain1/config/domain.xml

The most common problem would be that the http-listener ports are reused by another application. Find the following lines:

name="http-listener-1" port="8080" name="http-listener-1" port="9090"

And replace them with something like:

name="http-listener-2" port="8181" name="http-listener-2" port="9191"

You can also read more about the domain.xml