Article - CS267163
"Unrecognized option" error when trying to start Tomcat during ThingWorx manual installation process
Modified: 14-Jan-2022
Applies To
- ThingWorx Platform 8.4 to 9.1
- Apache Tomcat
- Oracle Java
Description
- Tomcat starts up after initial manual installation but crashes once ThingWorx application gets deployed due to error related to defined Java options
- Tomcat logs show error "Unrecognized VM option"
[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.
- On Windows, starting Tomcat as a service fails, Tomcat/logs/common-daemon.log has
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
This is a printer-friendly version of Article 267163 and may be out of date. For the latest version click CS267163