cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

tomcat server stop working after pasting Thingworx.war in web

Sri1
13-Aquamarine

tomcat server stop working after pasting Thingworx.war in web

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Sri1
13-Aquamarine
(To: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

View solution in original post

7 REPLIES 7
vangne
16-Pearl
(To:Sri1)

@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

Sri1
13-Aquamarine
(To:vangne)

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

vangne
16-Pearl
(To:Sri1)

@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

Sri1
13-Aquamarine
(To:vangne)

Hi vangne,

 

I have attached the logs that you requested.

I uninstalled and re-installed the whole setup again. This time the Apache is working properly but the link http://ptc-training.ptc.com:9090/Thingworx is still not working.

- This time i give NETWORK SERVICE authentication permission for ThingworxPlatform folder also.

- Also checked at Applications table of link http://localhost:9090/manager/html , found /Thingworx  and tried to start it,       

i got the following error message:

FAIL - Application at context path [/Thingworx] could not be started
FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Thingworx]]]

 

Thanks

vangne
16-Pearl
(To:Sri1)

@Sri1 Great to hear that your tomcat is working now. For the mentioned errors, can you check the resolution section of below two articles?

https://www.ptc.com/en/support/article?n=CS216802

 

https://www.ptc.com/en/support/article?n=CS305796

 

If the issue still persists, Can you also share application logs? You can get this from ThingWorxStorage -> logs -> ApplicationLog.

 

Also, this could be the permissions issue. Please ensure both Tomcat and ThingworxPlatform folders have relevant read/write permissions. Refer to this: Community Post 1 and Community Post 2 ,

Frequently Seen Errors upon launching the ThingWorx application

 

Thanks,

Vibhuti

Sri1
13-Aquamarine
(To:vangne)

Hi Vangne, 

Thanks for the support, i have given all the permissions for all the folders, 

There are no ThingworxStorage and ThingworxBackupStorage folder created ( May be somthing happened when i uninstalled and reinstalled again from the start ). 

Also why is this error generating ( Version: jdk 1.7.0 / Tomcat 8.5.47 / Thingworx 8.3)

FAIL - Application at context path [/Thingworx] could not be started
FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Thingworx]]]

 

I repeated this same installations for another PC (PC_2). In this, i am again getting the same old Tomcat automatic stopping issue. I am attaching both Apache logs and Thingworxstorage Application logs of PC_2. can you have a look. 

 

 Thanks

Sri1
13-Aquamarine
(To: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

Top Tags