2 Replies Latest reply on Sep 12, 2016 10:17 AM by Ravi Upadhyay RSS
    hughbod Newbie

    Thingworx as ROOT application on Tomcat

    How do I make Thingworx be the root application on Tomcat?  I've tried the "usual" method (renaming the Thingworx.war file to ROOT.war and deploying) but it just redirects immediately to /Thingworx/home (which obviously is not there).

    Any suggestions?

      • Thingworx as ROOT application on Tomcat
        jasonpe Explorer

        I don't know if this is the correct solution but it's worked for me. In your tomcat webapps folder (eg. usr/share/tomcat7/webapps) replace the contents of the "ROOT" folder with the contents from the "Thingworx" folder. I first copied the contents of the "ROOT" folder to a new folder called "tomcat" so I could still access the tomcat manager app at <serverIP>/tomcat. Let me know if you have any questions


        • Re: Thingworx as ROOT application on Tomcat
          Ravi Upadhyay Communicator

          You have a couple of options:



          Remove the out-of-the-box ROOT/ directory from tomcat and rename your war file to ROOT.war before deploying it.



          Deploy your war as (from your example) war_name.war and configure the context root in conf/server.xml to use your war file :

          <Context path="" docBase="war_name" debug="0" reloadable="true"></Context>





          The first one is easier, but a little more kludgy. The second one is probably the more elegant way to do it.