This question already has answers here:
How to fix -Djava.endorsed.dirs not supported, that emerged after installing WTP in Eclipse?
(3个答案)
去年关闭。
当我尝试从IntelliJ启动Glassfish 4.1中的域时,出现以下错误:
我发现认可的目录在Java 9中已被弃用,因此我检查了配置,似乎都在使用Java 8。
我也尝试从命令行开始,具有相同的输出。
(3个答案)
去年关闭。
当我尝试从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。
我也尝试从命令行开始,具有相同的输出。
最佳答案
我必须从-Djava.endorsed.dirs
中删除所有对-Djava.ext.dirs
和config/domain.xml
的提及
关于java - Glassfish由于endorsed.dirs错误而无法启动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47644901/
10-15 04:00