JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext; error=2, No such file or directory

Almas Adilbek picture Almas Adilbek · Jul 1, 2014 · Viewed 11.3k times · Source

In my OS X Yosemite, I'm trying to start-domain in terminal:

sh asadmin start-domain mythMobile

and I get error:

JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext" (in directory "/Applications/glassfish4/glassfish/domains/mythMobile/config"): error=2, No such file or directory
Command start-domain failed.

This problem appeared after I've installed beta Yosemite on my mac. Before I had Mavericks, everything worked correctly.

Have anybody faced with such problem?

Answer

davidd picture davidd · Jul 18, 2014

To work-around that, you can start GF in verbose mode using:

asadmin start-domain --verbose domain1