Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glassfish not starting due to endorsed.dirs error [duplicate]

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.

like image 693
Patrick Villela Avatar asked Oct 18 '22 02:10

Patrick Villela


1 Answers

I had to remove all mentions of -Djava.endorsed.dirs and -Djava.ext.dirs from my config/domain.xml

like image 129
Kuzeko Avatar answered Nov 14 '22 00:11

Kuzeko