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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Thingworx8.1 installation error with tomcat

snam1
2-Explorer

Thingworx8.1 installation error with tomcat

I'm trying to install TWX8.1 accoring to manual

 

The tomcat service dosen't work.

 

when I am in the step of '$ sudo systemctl enable tomcat.service', it has an error message : 'badmessage'

'tomcat.service' has

 

  [Unit]
  Description=Apache Tomcat Web Application Container
  After=network.target
  
  [Service]
  Type=forking
  PIDFile=/var/run/tomcat.pid
  Environment=CATALINA_PID=/var/run/tomcat.pid
  Environment=JAVA_HOME=/usr/lib/jvm/jdk1.8.0_131
  Environment=CATALINA_HOME=/usr/share/tomcat8.5/8.5.13
  Environment=CATALINA_BASE=/usr/share/tomcat8.5/8.5.13
  Environment=CATALINA_OPTS=
  
  ExecStart=/usr/share/tomcat8.5/8.5.13/bin/jsvc \
                              -Dcatalina.home=${CATALINA_HOME} \
                              -Dcatalina.base=${CATALINA_BASE} \
                              -Djava.awt.headless=true -
Djava.net.preferIPv4Stack=true -Dserver -Dd64 -XX:+UseNUMA \
                              -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8 \
                              -
Djava.library.path=${CATALINA_BASE}/webapps/Thingworx/WEB-INF/extensions \
                              -cp ${CATALINA_HOME}/bin/commons-
daemon.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-
juli.jar \
                              -user tomcat8.5 \
                              -java-home ${JAVA_HOME} \
                              -pidfile /var/run/tomcat.pid \
                              -errfile ${CATALINA_HOME}/logs/catalina.out \
                              -outfile ${CATALINA_HOME}/logs/catalina.out \
                              $CATALINA_OPTS \
                              org.apache.catalina.startup.Bootstrap
 
  [Install]
  WantedBy=multi-user.target

 

 

and status of tomcat get a message with "Trailing garbage, ignoring." in line

'ExecStart=/usr/share/tomcat8.5/8.5.13/bin/jsvc \'

3 REPLIES 3
dhwang
13-Aquamarine
(To:snam1)

I had similar issue under CentOS

Even through failed "sudo systemctl enable tomcat.service" tomcat has been started without error as "sudo systemctl start tomcat" command 

 

Did you get any issue during "jsvc" step such as tar/make etc.. ? 

 

Thanks,

Dane 

dhwang
13-Aquamarine
(To:dhwang)

Here is suggestion..

 

1. Stop all process for tomcat

2. Grant all permission to tomcat installation directory - sudo chmod -R 777 ..... 

3. Start tomcat as "startup.sh" as root

4. Access to UI

 

If failed please share "catalina.out" 

 

Thanks,

Dane 

 

Thanks,

Dane 

Based on the error message "Trailing garbage, ignoring" looks you have some character after "\". Can you share 'tomcat.service' file?

 

--Marek

Announcements


Top Tags