Glassfish错误的起始域.不支持认可的目录 [英] Glassfish error starting domain. endorsed directories not supported

查看:176
本文介绍了Glassfish错误的起始域.不支持认可的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac Os X 10.14.6上启动glassfish时遇到问题.

I have a problem starting glassfish on Mac Os X 10.14.6.

我用

brew install glassfish

然后我添加了

AS_JAVA="/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home"

在asenv.conf中,以解决Java空指针异常.

in asenv.conf in order to solve a java null pointer exception.

现在我收到以下错误:

$ ./asadmin start-domain domain1

Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:

-Djava.endorsed.dirs=/usr/local/Cellar/glassfish/5.1.0/libexec/glassfish/modules/endorsed:/usr/local/Cellar/glassfish/5.1.0/libexec/glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Command start-domain failed.

有人知道如何解决这个问题吗?

Does anyone know how to solve this issue?

推荐答案

自Java 9以来已删除了认可目录.因此,错误消息表明您至少在使用Java 9.

The endorsed directories have been removed since Java 9. So the error message suggests that you are running with at least Java 9.

您需要使用Java 8才能正常工作.如果我没记错的话,Glassfish不支持Java 9和更高版本.

You need to use Java 8 for this to work. If I remember correctly then Glassfish does not support Java 9 and higher.

这篇关于Glassfish错误的起始域.不支持认可的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆