users@glassfish.java.net

[gf-users] Glassfish 4.1 won't start on OS X 10.10.3

From: Petr Hadraba <hadrabap_at_gmail.com>
Date: Fri, 17 Apr 2015 08:24:01 +0200

Hello all,

I’ve updated my OS X machine to the all latest updates and patches and that results into Glassfish 4.1 is unable to start:

Petrs-MacBook-Pro:bin petr$ ./asadmin start-domain domain1
JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: The server exited prematurely with exit code 1.
Before it died, it produced the following output:


Command start-domain failed.

I’ve figure-out that launching the command in verbose mode works just fine.

./asadmin start-domain --verbose domain1

But in this case the JMX does not work. It complains about Connection Timeout to bind to my “public” IP address. The workaround is to set the JMX to listen only on localhost instead of 0.0.0.0.

It seams that Apple has removed some API (maybe deprecated for some time) which is used by asadmin.

Is here somebody else running Glassfish on the latest patched (up-to-date) OS X 10.10.3 and facing the same issues?

I’ve reported that at GLASSFISH-21350 <https://java.net/jira/browse/GLASSFISH-21350>.

Thanks in advance.

Sincerely yours,

PETR