0

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

我安装了它

brew install glassfish

然后我添加了

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

在 asenv.conf 中以解决 java 空指针异常。

现在我收到以下错误:

$ ./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.

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

4

1 回答 1

3

自 Java 9 以来,已认可的目录已被删除。因此错误消息表明您至少使用 Java 9 运行。

为此,您需要使用 Java 8。如果我没记错的话 Glassfish 不支持 Java 9 及更高版本。

于 2020-02-23T14:30:24.180 回答