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

We are aware of an issue with eSupport impacting community login. We are working on a fix and community login should be restored soon.

Run Thingworx on Multiple Ports(HTTP and HTTPS)

pshashipreetham
17-Peridot

Run Thingworx on Multiple Ports(HTTP and HTTPS)

Hi,

 

I have installed the Thingworx on 8080, but I want to run it on 443, 8080 (HTTP) and 51366(HTTP).

 

I have changed in the server.xml, but it fails when I add two more connectors:

pshashipreetham_0-1725356166073.png

Output of Catalina.out

13:24:47,593 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
13:24:47,594 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
13:24:47,594 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/ThingWorxFoundation/tomcat/apache-tomcat-9.0.52/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.3.0-b20.jar!/logback.xml]
13:24:47,616 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5734eaa7 - URL [jar:file:/opt/ThingWorxFoundation/tomcat/apache-tomcat-9.0.52/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.3.0-b20.jar!/logback.xml] is not of type file
13:24:47,659 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [com.thingworx.logging.LogbackCustomLoggerContextListener] to the object stack
13:24:47,593 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
13:24:47,594 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
13:24:47,594 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/ThingWorxFoundation/tomcat/apache-tomcat-9.0.52/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.3.0-b20.jar!/logback.xml]
13:24:47,616 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5734eaa7 - URL [jar:file:/opt/ThingWorxFoundation/tomcat/apache-tomcat-9.0.52/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.3.0-b20.jar!/logback.xml] is not of type file
13:24:47,659 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [com.thingworx.logging.LogbackCustomLoggerContextListener] to the object stack
13:24:48,041 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:88 - RuntimeException in Action for tag [contextListener] com.thingworx.exceptions.ConfigurationException: java.io.IOException: No such file or directory
        at com.thingworx.exceptions.ConfigurationException: java.io.IOException: No such file or directory
        at      at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3390)
        at      at com.thingworx.logging.LogbackUtilities.loadLogbackConfiguration(LogbackUtilities.java:54)
        at      at com.thingworx.logging.LogUtilities.initializeLoggerContext(LogUtilities.java:440)
        at      at com.thingworx.logging.LogbackCustomLoggerContextListener.start(LogbackCustomLoggerContextListener.java:23)
        at      at ch.qos.logback.classic.joran.action.LoggerContextListenerAction.end(LoggerContextListenerAction.java:70)
        at      at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
        at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
        at      at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addStatus(StatusViaSLF4JLoggerFactory.java:32)
        at      at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addInfo(StatusViaSLF4JLoggerFactory.java:20)
        at      at ch.qos.logback.classic.servlet.LogbackServletContainerInitializer.onStartup(LogbackServletContainerInitializer.java:26)
        at      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219)
        at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
        at      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
        at      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
        at      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
        at      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
        at      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
        at      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
        at      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
        at      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
        at      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
        at      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
        at      at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
        at      at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
        at      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
        at      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
        at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
        at      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
        at      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
        at      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
        at      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
        at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
        at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
        at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at      at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
        at      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
        at      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.io.IOException: No such file or directory
        at      at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
        at      at java.base/java.io.File.createNewFile(File.java:1035)
        at      at com.thingworx.security.utils.SecureTokenUtils.createSecureTokenFileWithGeneratedToken(SecureTokenUtils.java:53)
        at      at com.thingworx.system.configuration.PlatformSettings.<init>(PlatformSettings.java:2255)
        at      at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3381)
        at      ... 62 common frames omitted
13:24:48,041 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
13:24:48,041 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@54889994 - Registering current configuration as safe fallback point

>>>>>>>> TERMINATING JVM <<<<<<<<<<
>>>>>>>> CALLING SYSTEM EXIT <<<<<<<<<<

 

Thanks,

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
ACCEPTED SOLUTION

Accepted Solutions

Hi,

 

This was a Command issue, it looks like below command I was using is not giving full access to start the Thingworx:

sudo /opt/ThingWorxFoundation/tomcat/current/bin/startup.sh & sudo tail -f /opt/ThingWorxFoundation/tomcat/current/logs/catalina.out

 

I tried with the below command, and Thingworx started:

sudo systemctl stop ThingWorx-Foundation.service
sudo systemctl start ThingWorx-Foundation.service

 

Thanks,

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

View solution in original post

3 REPLIES 3

What is the error in Tomcat's Catalina.out?

 

Attached in the Original Message.

Thanks for quick response.

 

 

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

Hi,

 

This was a Command issue, it looks like below command I was using is not giving full access to start the Thingworx:

sudo /opt/ThingWorxFoundation/tomcat/current/bin/startup.sh & sudo tail -f /opt/ThingWorxFoundation/tomcat/current/logs/catalina.out

 

I tried with the below command, and Thingworx started:

sudo systemctl stop ThingWorx-Foundation.service
sudo systemctl start ThingWorx-Foundation.service

 

Thanks,

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
Announcements


Top Tags