当我试图在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。
我还尝试从命令行开始,使用相同的输出。
发布于 2018-07-10 22:20:55
我不得不从我的config/domain.xml中删除所有提到-Djava.endorsed.dirs和-Djava.ext.dirs的内容
https://stackoverflow.com/questions/47644901
复制相似问题