6 Replies Latest reply on Feb 13, 2017 8:53 AM by tclark-2 RSS
    tclark-2 Newbie

    Thingworx Trial Ubuntu install trouble

    Hello,

    I've attempted to setup the Thingworx Freemium 7.2.1-b71 on a Ubuntu 14.04 LTS AWS server following the steps in the guide but I'm not able get a response from the Thingworx webpage both locally and remotely.  I suspect tomcat is not running properly but I'm not sure what I missed.

     

    I've confirmed tomcat is running:

    $ ps -ef | grep tomcat

    tomcat8   1272     1 99 14:28 ?        03:00:08 /usr/lib/jvm/jdk1.8.0_121/jre/bin/java -Djava.util.logging.config.file=/usr/share/tomcat8/8.0.33/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager...

     

      PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND

    1272 tomcat8   20   0 2337324 376164  15624 S 97.1 37.0 188:13.98 java

     

    And is listenning on port 443:

    $ netstat -l

    Active Internet connections (only servers)

    Proto Recv-Q Send-Q Local Address           Foreign Address         State

    tcp        0      0 *:8009                  *:*                     LISTEN

    tcp        0      0 *:ssh                   *:*                     LISTEN

    tcp        0      0 *:https                 *:*                     LISTEN

     

     

    The catalina output log does not list the server got started but contains no errors:

     

    03-Feb-2017 14:04:21.498 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.33

    03-Feb-2017 14:04:21.499 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Mar 18 2016 20:31:49 UTC

    03-Feb-2017 14:04:21.499 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.33.0

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.13.0-107-generic

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib/jvm/jdk1.8.0_121/jre

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_121-b13

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation

    03-Feb-2017 14:04:21.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/share/tomcat8/8.0.33

    03-Feb-2017 14:04:21.502 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/share/tomcat8/8.0.33

    03-Feb-2017 14:04:21.503 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/share/tomcat8/8.0.33/conf/logging.properties

    03-Feb-2017 14:04:21.503 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

    03-Feb-2017 14:04:21.503 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true

    03-Feb-2017 14:04:21.503 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.net.preferIPv4Stack=true

    03-Feb-2017 14:04:21.504 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dserver

    03-Feb-2017 14:04:21.504 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dd64

    03-Feb-2017 14:04:21.504 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseNUMA

    03-Feb-2017 14:04:21.510 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC

    03-Feb-2017 14:04:21.510 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/usr/share/tomcat8/8.0.33/endorsed

    03-Feb-2017 14:04:21.510 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/share/tomcat8/8.0.33

    03-Feb-2017 14:04:21.511 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8/8.0.33

    03-Feb-2017 14:04:21.511 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/share/tomcat8/8.0.33/temp

    03-Feb-2017 14:04:21.511 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

    03-Feb-2017 14:04:21.868 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-443"]

    03-Feb-2017 14:04:22.368 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

    03-Feb-2017 14:04:22.370 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]

    03-Feb-2017 14:04:22.371 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

    03-Feb-2017 14:04:22.372 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1716 ms

    03-Feb-2017 14:04:22.430 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina

    03-Feb-2017 14:04:22.431 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.33

    03-Feb-2017 14:04:22.477 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /usr/share/tomcat8/8.0.33/webapps/Thingworx.war

    03-Feb-2017 14:04:25.949 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

      • Re: Thingworx Trial Ubuntu install trouble
        tclark-2 Newbie

        Forgot to mention I did have to remove the '–Dfile.encoding=UTF-8' option from setenv.sh to avoid a missing  '–Dfile.encoding=UTF-8'  class error.

          • Re: Thingworx Trial Ubuntu install trouble
            tclark-2 Newbie

            After specifying more memory for tomcat with  -Xms768m -Xmx768m options in setenv.sh I can now access the webpage.  This step wasn't listed in the provided ThingWorx Developer Trial Edition Guide.pdf but was mentioned in the full Installing_ThingWorx_7.3_1.pdf guide.

             

            Anyone know how to resolve a missing  '–Dfile.encoding=UTF-8'  class error?

            • Re: Thingworx Trial Ubuntu install trouble
              Ankit Gupta Ninja

              tclark-2, I would suggest you to check the Application logs available at /ThingWorxStorage/logs/ and check if Application is running or if you see any error?

                • Re: Thingworx Trial Ubuntu install trouble
                  tclark-2 Newbie

                  The TW application logs show the application is running since the last configuration change mentioned in Feb 3, 2017 5:11 PM.   The logs do list a warning for the UTF-8 encoding not being set.  For the near term we will only being using the English langange so will ignoring this warning cause any further issuses?

                   

                  Do you know how to resolve the missing  '–Dfile.encoding=UTF-8'  class error?

                    • Re: Thingworx Trial Ubuntu install trouble
                      Ankit Gupta Ninja

                      Hi tclark-2,

                      Please readd -Dfile.encoding=UTF-8 to JAVA_OPTS.

                      In your Tomcat install directory, in the bin folder, open your setenv.sh file with a text editor. On the second line, make sure that all the JAVA_OPTS are in one line in side the quotations marks. Finally, it looks from the error you included that there may be a text mismatch issue. Please make sure that all the dashes are standard dashes ( - ) and not extended dashes ( ) as these are read differently by the Java interpreter and can cause problems. You'll run into these occasionally if you cut and pasted any of those Java options in from another doc.
                      Once you have checked and made any changes, please save this file and restart Tomcat.


                      I hope it helps.


                      Thanks,

                      Ankit Gupta