无法使用java 9启动基于tomcat的应用程序,因为catalina.sh中默认的“java.endorsed.dirs”选项
-Djava.endorsed.dirs=/usr/local/share/tomcat/endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
发布于 2018-08-30 13:57:40
必须破解脚本才能使它bin/catalina.sh
工作,有很多这样的行bin/catalina.sh
:
exec "$_RUNJDB" "$LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
...
发布于 2018-08-30 14:41:50
在我的例子中,为回答Tomcat未运行的问题所做的是设置具有较低Java版本的Tomcat(版本7)(例如Java 8)。
然后,在startup.sh,shutdown.sh和catalina.sh中添加了以下内容:
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`;
https://stackoverflow.com/questions/-100002495
复制相似问题