When I try to start a domain in Glassfish 4.1 from IntelliJ I'm presented with this error:
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:
-Djava.endorsed.dirs=/opt/glassfish4/glassfish/modules/endorsed:/opt/glassfish4/glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
I found that endorsed dirs have been deprecated in Java 9, so I checked my configurations, and all seems to be using Java 8.
I also tried to start from the command line, with the same output.
I had to remove all mentions of -Djava.endorsed.dirs
and -Djava.ext.dirs
from my config/domain.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With