Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I installed tomcat 8.033 on RHEL following the Thingworx 7.4 installation guide from the website. When running sudo systemctl status tomcat I get the following
â tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2017-09-27 09:15:24 +04; 2h 43min ago
Process: 2547 ExecStart=/usr/share/tomcat8/8.0.33/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 -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 (code=exited, status=0/SUCCESS)
Main PID: 2551 (jsvc)
CGroup: /system.slice/tomcat.service
ââ2550 jsvc.exec -Dcatalina.home=/usr/share/tomcat8/8.0.33 -Dcatalina.base=/usr/share/tomcat8/8.0.33 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dserver -Dd64 -XX:+UseNUMA -XX:+UseConcMarkSweepGC -Dfile.encodi...
ââ2551 jsvc.exec -Dcatalina.home=/usr/share/tomcat8/8.0.33 -Dcatalina.base=/usr/share/tomcat8/8.0.33 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dserver -Dd64 -XX:+UseNUMA -XX:+UseConcMarkSweepGC -Dfile.encodi...
Sep 27 09:15:24 hrc-vas-de-ap-19 systemd[1]: Starting Apache Tomcat Web Application Container...
Sep 27 09:15:24 hrc-vas-de-ap-19 systemd[1]: PID file /var/run/tomcat.pid not readable (yet?) after start.
Sep 27 09:15:24 hrc-vas-de-ap-19 systemd[1]: tomcat.service: Supervising process 2551 which is not our child. We'll most likely not notice when it exits.
Sep 27 09:15:24 hrc-vas-de-ap-19 systemd[1]: Started Apache Tomcat Web Application Container.
However, I am still unable to access tomcat server from the browser.
Hi Muhammad Hassan,
Could you please verify the below steps:
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" keystoreFile="/usr/share/tomcat8/8.0.33/conf/.keystore" keystorePass="Enter keystorepassword" clientAuth="false" sslProtocol="TLS" />
If this doesn't resolve the issue please share the catalina.out file from Tomcat folder
I have tried your solution, however it still did not work. I looked at the catalina file and it might be a java related issue. However, I installed java as per the guide and rechecked my steps. I did not paste the whole log file since it is too long. Here is part of the log file
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.33
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Mar 18 2016 20:31:49 UTC
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.33.0
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 3.10.0-514.26.2.el7.x86_64
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/jdk1.8.0_92/jre
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_92-b14
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /usr/share/tomcat8/8.0.33
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /usr/share/tomcat8/8.0.33
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/usr/share/tomcat8/8.0.33
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/usr/share/tomcat8/8.0.33
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.awt.headless=true
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.net.preferIPv4Stack=true
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dserver
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dd64
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:+UseNUMA
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:+UseConcMarkSweepGC
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.library.path=/usr/share/tomcat8/8.0.33/webapps/Thingworx/WEB-INF/extensions
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcommons.daemon.process.id=26850
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcommons.daemon.process.parent=26849
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcommons.daemon.version=1.0.15-dev
Oct 01, 2017 7:16:55 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: abort
Oct 01, 2017 7:16:55 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/share/tomcat8/8.0.33/webapps/Thingworx/WEB-INF/extensions
Oct 01, 2017 7:16:56 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-443"]
Oct 01, 2017 7:16:56 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Oct 01, 2017 7:16:56 AM org.apache.coyote.AbstractProtocol init
INFO: Using a shared selector for servlet write/read
Oct 01, 2017 7:16:56 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Oct 01, 2017 7:16:56 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Oct 01, 2017 7:16:56 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 644 ms
Oct 01, 2017 7:16:56 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 01, 2017 7:16:56 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.33
Oct 01, 2017 7:16:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/tomcat8/8.0.33/webapps/manager
Warning: default mime table not found: /usr/lib/jvm/jdk1.8.0_92/jre/lib/content-types.properties
Oct 01, 2017 7:16:56 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: The session manager failed to start
org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.session.StandardManager[/manager]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5268)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.util.StandardSessionIdGenerator@75f29bda]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at org.apache.catalina.session.ManagerBase.startInternal(ManagerBase.java:719)
at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:352)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 12 more
Caused by: java.lang.UnsatisfiedLinkError: no net in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at java.net.NetworkInterface$1.run(NetworkInterface.java:59)
at java.net.NetworkInterface$1.run(NetworkInterface.java:57)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.NetworkInterface.<clinit>(NetworkInterface.java:56)
at sun.security.provider.SeedGenerator.addNetworkAdapterInfo(SeedGenerator.java:233)
at sun.security.provider.SeedGenerator.access$000(SeedGenerator.java:80)
at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:183)
at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.provider.SeedGenerator.getSystemEntropy(SeedGenerator.java:168)
at sun.security.provider.SecureRandom$SeederHolder.<clinit>(SecureRandom.java:201)
at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:221)
at java.security.SecureRandom.nextBytes(SecureRandom.java:468)
at java.security.SecureRandom.next(SecureRandom.java:491)
at java.util.Random.nextInt(Random.java:329)
at org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom(SessionIdGeneratorBase.java:237)
at org.apache.catalina.util.SessionIdGeneratorBase.getRandomBytes(SessionIdGeneratorBase.java:174)
at org.apache.catalina.util.StandardSessionIdGenerator.generateSessionId(StandardSessionIdGenerator.java:34)
at org.apache.catalina.util.SessionIdGeneratorBase.generateSessionId(SessionIdGeneratorBase.java:167)
at org.apache.catalina.util.SessionIdGeneratorBase.startInternal(SessionIdGeneratorBase.java:256)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 15 more
Oct 01, 2017 7:16:56 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/manager] startup failed due to previous errors
Oct 01, 2017 7:16:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/tomcat8/8.0.33/webapps/examples
Oct 01, 2017 7:16:56 AM org.apache.catalina.startup.HostConfig deployDirectories
SEVERE: Error waiting for multi-thread deployment of directories to complete
java.util.concurrent.ExecutionException: java.lang.InternalError: java.io.FileNotFoundException: /usr/lib/jvm/jdk1.8.0_92/jre/lib/resources.jar
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1011)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:404)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1546)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:288)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:339)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:933)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InternalError: java.io.FileNotFoundException: /usr/lib/jvm/jdk1.8.0_92/jre/lib/resources.jar
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:1003)
at sun.misc.URLClassPath.getResource(URLClassPath.java:212)
at sun.misc.URLClassPath.getResource(URLClassPath.java:265)
at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1264)
at java.lang.ClassLoader.getResource(ClassLoader.java:1093)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1214)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:1617)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1541)
at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1493)
at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:446)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5509)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
... 4 more
Caused by: java.io.FileNotFoundException: /usr/lib/jvm/jdk1.8.0_92/jre/lib/resources.jar
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:891)
at sun.misc.URLClassPath$JarLoader.access$700(URLClassPath.java:756)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:838)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:831)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:830)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:1001)
.
.
.
Have you already installed ThingWorx too? If so, could you please attach the application log file located in the ThingworStorage/logs directory?
I thave not installed thingworx yet. I wanted to get tomcat running before I did
Hi Muhammad Hassan,
Could you please review if /usr/lib/jvm/jdk1.8.0.92 folder exists or not?
or please follow the below steps and share the output of these commands:
Also, could you please provide the java version that you have installed on the system?
Hi Yamini,
Here is the directory contents of /usr/lib/jvm
drwx------ 3 root root 4096 Sep 14 11:20 .
dr-xr-xr-x. 37 root root 4096 Sep 17 10:35 ..
drwxr-xr-x 9 root root 4096 Sep 17 08:09 jdk1.8.0_92
and here is the java version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)