技术文章 - CS267163
在 ThingWorx 手动安装过程中尝试启动 Tomcat 时出现“无法识别的选项”错误
已修改: 14-Jan-2022
适用于
- ThingWorx Platform 8.4 to 9.1
- Apache Tomcat
- Oracle Java
说明
- Tomcat 在初始手动安装后启动,但在部署 ThingWorx 应用程序后由于与定义的 Java 选项相关的错误而崩溃
- Tomcat 日志显示错误“无法识别的 VM 选项”
[YYYY-MM-DD hh:mm:ss] [error] [ 8920] The system could not find the environment option that was entered. Unrecognized option: Djava.library.path=<path_to_Tomcat>\webapps\Thingworx\WEB-INF\extensions YYYY-MM-DD hh:mm:ss Commons Daemon procrun stderr initialized Unrecognized VM option 'UseG1GC ' Did you mean '(+/-)UseG1GC'? NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized VM option 'PrintGCTimeStamps' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
- 在 Windows 上,将 Tomcat 作为服务启动失败, Tomcat/logs/common-daemon.log有
CreateJavaVM Failed with error [-1] The system could not find the environment option that was entered Failed to start Java ServiceStart returned 4. Run service finished
这是文章 267163 的 PDF 版本,可能已过期。最新版本 CS267163