Errore "Opzione non riconosciuta" quando si tenta di avviare Tomcat durante il processo di installazione manuale di ThingWorx
Si applica a
- ThingWorx Platform 8.4 to 9.1
- Apache Tomcat
- Oracle Java
Descrizione
- Tomcat si avvia dopo l'installazione manuale iniziale ma si blocca quando l'applicazione ThingWorx viene distribuita a causa di un errore relativo alle opzioni Java definite
- I registri di Tomcat mostrano l'errore "Opzione VM non riconosciuta"
[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.
- Su Windows, l'avvio di Tomcat come servizio non riesce, Tomcat/logs/common-daemon.log ha
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