Glassfish 错误起始域。不支持认可的目录
Glassfish error starting domain. endorsed directories not supported
我在 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.
有谁知道如何解决这个问题?
认可目录自 Java 9 起已被删除。因此错误消息表明您至少 运行 9.
您需要使用 Java 8 才能正常工作。如果我没记错的话,Glassfish 不支持 Java 9 及更高版本。
我在 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.
有谁知道如何解决这个问题?
认可目录自 Java 9 起已被删除。因此错误消息表明您至少 运行 9.
您需要使用 Java 8 才能正常工作。如果我没记错的话,Glassfish 不支持 Java 9 及更高版本。