Skip to main content
1-Visitor
October 21, 2019
Solved

tomcat server stop working after pasting Thingworx.war in web

  • October 21, 2019
  • 1 reply
  • 3678 views

I am working with windows 10.  "ThingWorx-Platform-Postgres-8-3-9".

 

I did the installation as specified in the guide.

The Tomcat server was working fine until,  i pasted the  "Thingworx.war" in  "C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps".

The server starts for some time and stop, the below links dosen't work.

http://ptc-training.ptc.com:9090/Thingworx/

http://localhost:9090/

 

Some suggested to add setenv.bat in bin folder of tomcat, but still the issues is not resolved.

 

setenv.bat - 

"# Java Options

export JAVA_OPTS="-Djava.awt.headless=true - Djava.net.preferIPv4Stack=true -Dserver -Dd64 - XX:+UseNUMA -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8 -Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\Thingworx\WEB-INF\extensions "

export JRE_HOME=C:\Program Files\Java\jdk1.8.0_231\jre

"

 

How do i fix this issue?

Best answer by Sri1

Hi,

 

Issue resolved!

I Installed the higher version of postgress.

Also had to add the below lines in java options in the java tab of configure tomcat.

-Dserver -D64
-XX:+UseG1GC
-Dfile.encoding=UTF-8
-Djava.library.path=< Apache Tomcat location>\webapps\Thingworx\WEB-INF\extensions

1 reply

16-Pearl
October 21, 2019

@Sri1 Are you seeing any errors in the tomcat logs? Please provide the logs Location of Tomcat logs

Also, you may refer to this article for more information https://www.ptc.com/en/support/article?n=CS195506 

 

Thanks,

Vibhuti

Sri11-VisitorAuthor
1-Visitor
October 22, 2019

Hi vangne,

 

I checked the link that you sent.

I was using higher version of jre(1.8) which i downgraded to 1.7 according to the document(also changed at env variable ).

Then i reinstalled the Tomcat 8.5 according to the guide. Pasted the Thingworx.war file in C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps.

 

This time the Apache server didn't stop, but the link http://ptc-training.ptc.com:9090/Thingworx/ is not working and not error is showing. 

The link i check for tomcat error:C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\tomcat8-stderr.2019-10-22.log

 

Thanks

16-Pearl
October 22, 2019

@Sri1  Thanks for the update.

From your tomcat installation directory,i.e. \\<TomcatInstallation>\logs, can you please provide/attach below logs?

  • catalina.<date>.log
  • tomcatx-stderr.<date>.log
  • localhost.<date>.log
  • localhost_access_log.<date>.txt

Thanks,

Vibhuti