Article - CS305796

"Failed to create SecurityManager, Failed to load SecretProvider" is seen in Tomcat logs when attempting to start the ThingWorx Platform

Modified: 19-Mar-2024   


Applies To

  • ThingWorx Platform 8.4 to 9.4
  • Apache Tomcat

Description

  • Starting the ThingWorx Platform fails
  • Tomcat starts but ThingWorx fails to start
  • Fresh install of ThingWorx Platform fails and no errors are logged in the <ThingworxStorage>\logs\ApplicationLog.log
  • <ThingworxStorage>\logs directory not getting created when starting Apache Tomcat
  • ThingWorx Applications logs getting created in a folder named LOG_PATH_IS_UNDEFINED in <Apache Tomcat>
  • When Apache Tomcat exists on a different drive from ThingWorx Platform, ThingWorx will not start
  • Logs files located within <tomcat_home>\logs show the following:
    • thingworx-foundation-stdout.YYYY-MM-DD.txt
      • |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:88 - RuntimeException in Action for tag [contextListener] com.thingworx.exceptions.ConfigurationException: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
            at com.thingworx.exceptions.ConfigurationException: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
            at     at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3400)
            at     at com.thingworx.logging.LogbackUtilities.loadLogbackConfiguration(LogbackUtilities.java:54)
            at     at com.thingworx.logging.LogUtilities.initializeLoggerContext(LogUtilities.java:440)
            ...
        Caused by: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
            at     at com.thingworx.security.SecurityManagerBootstrapper.init(SecurityManagerBootstrapper.java:108)
            at     at com.thingworx.security.SecurityManagerBootstrapper.init(SecurityManagerBootstrapper.java:74)
            at     at com.thingworx.system.configuration.PlatformSettings.<init>(PlatformSettings.java:2273)
            at     at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3391)
            at     ... 62 common frames omitted
    • tomcat9-stdout.YYYY-MM-DD.log
      • [DATE_TIME] severe [main] org.apache.catalina.core.StandardContext.filterStart start filter exception:
        javax.servlet.ServletException: com.thingworx.exceptions.ConfigurationException: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
        at com.thingworx.security.authentication.HAAuthenticationFilter.init(HAAuthenticationFilter.java:49)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:270)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:251)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4530)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5176)
        ...
        Caused by: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
        at com.thingworx.security.SecurityManagerBootstrapper.init(SecurityManagerBootstrapper.java:65)
        at com.thingworx.system.configuration.PlatformSettings.<init>(PlatformSettings.java:1057)
        at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:1673)
        ... 45 more
        [DATE_TIME] severe [main] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class [com.thingworx.system.ThingWorxBootstrapper]
        java.lang.NullPointerException
        at com.thingworx.system.ThingWorxBootstrapper.contextDestroyed(ThingWorxBootstrapper.java:311)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4729)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5388)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
        ...
        FAIL - Application at context path [/Thingworx] could not be started
        
This is a printer-friendly version of Article 305796 and may be out of date. For the latest version click CS305796