当我尝试从IntelliJ启动Glassfish 4.1中的域时,我遇到了这个错误:
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.
我发现在Java 9中已经弃用了已批准的目录,所以我检查了我的配置,似乎都使用了Java 8。
我也尝试从命令行开始,输出相同。
答案 0 :(得分:0)
我必须从我的-Djava.endorsed.dirs
中删除所有提到的-Djava.ext.dirs
和config/domain.xml