Skip to main content
1-Visitor
December 19, 2020
Solved

Unable to install ThingWorx 9.1. The tomcat is not starting up

  • December 19, 2020
  • 1 reply
  • 11382 views

The catalina log has been closed.

 

I have Tomcat 9.0.37 and Java 11.0.9 in my local machine.

 

Also let me know how to set JAVA_OPTS using bat file as I am unable to locate "setenv.bat" file under Tomcat directory.

 

Kindly help.

Best answer by DmitryTsarev

If you don't have -Djava.library.path set then Thingworx normally crashes

 

Also keep in mind that if you have spaces in the path, you should put it into quotes, like

set JAVA_OPTS=-Dserver -Dd64 -XX:+UseG1GC -Dfile.encoding=UTF-8 -Djava.library.path="c:\Program Files (x86)\Apache Foundation\Apache Tomcat\webapps\WEB-INF"

1 reply

17-Peridot
December 21, 2020

You have to create setenv.bat manually in the Tomcat/bin folder and set the env. variables there, e.g.:

------------------------------

set JRE_HOME=c:\PTC\jre18_241
set THINGWORX_PLATFORM_SETTINGS=c:\PTC\Thingworx90_H2
set JAVA_OPTS=-Dserver -Dd64 -XX:+UseG1GC -Dfile.encoding=UTF-8 -Djava.library.path=c:\PTC\Thingworx90_H2\webapps\Thingworx\WEB-INF\extensions
set TITLE=Thingworx90_H2

----------------------------------------------

 

As for the reason why Thingworx doesn't start... Do you have any log files in the ThingworxStorage/logs folder? In particular, ApplicationLog.log file.

ranjank1-VisitorAuthor
1-Visitor
December 21, 2020

@DmitryTsarev ,

 

Have referred below link for ThingWorx 9.1 System Requirements:-

 

https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx%2FHelp%2FSystemRequirements%2F9_1_system_requirements.html%23wwID0EMFHM

 

Below three are mentioned there for Java:-

• OpenJDK - Amazon Coretto 11.0.8
• Oracle Java 11.0.8 and above (eg: 11.0.x)
• Oracle Java 1.8.0_261
That'sy I installed Oracle Java 11.0.9
 
ThingworxStorage folder is empty till now.
 
Please advise.
 
 
17-Peridot
December 21, 2020

So Tomcat crashes upon starting?

 

According to your logs, Thingworx deployment begins as expected and there are no more errors.

19-Dec-2020 22:26:18.940 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\Thingworx.war]
19-Dec-2020 22:26:59.733 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

***************************************

 

Does something change if you create setenv.bat and set options there?

set JRE_HOME=c:\PTC\jre18_241
set JAVA_OPTS=-Dserver -Dd64 -XX:+UseG1GC -Dfile.encoding=UTF-8 -Djava.library.path=c:\PTC\Thingworx90_H2\webapps\Thingworx\WEB-INF\extensions

 

Can you see the "Thingworx" folder in the "Tomcat\webapps\" folder, next to the Thingworx.war ?