【发布时间】:2017-12-05 01:58:02
【问题描述】:
当我尝试从 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。
我也尝试从命令行启动,输出相同。
【问题讨论】:
-
认可的标准覆盖机制在 JDK 8 更新中被弃用,并在 JDK 9 中被删除。AFAIK,Glassfish 4.1 或 5 都尚未在 JDK 9 上获得认证。 Glassfish 问题跟踪器中有几个关于此主题的问题。
-
这肯定不是 5 个月后的问题的重复。
标签: java intellij-idea glassfish-4.1