Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello all,
I just tried to install ThingWorx 7.4 next to an existing 7.3. System. Therefore I did the following:
setlocal
SET currentDict=%~dp0
SET "CATALINA_HOME=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35"
SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121"
set "JAVA_OPTS=-Xms4096m -Xmx8192m -XX:PermSize=256m -XX:MaxPermSize=1024m"
SET THINGWORX_PLATFORM_SETTINGS=C:\TomKatzen\7.4P_9001
CALL "C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35\bin\startup.bat"
endlocal
After trying to deploy this File (tried with H2 and Neo4J) the server simply crashes. I will attach the log file but it is not very helpful.
If i try the same setup with 7.2.x or 7.3.x it works perfectly and uses the non-default folders i specified.
I would be glad if you could helo me. Thank you!
Lukas
04-Apr-2017 11:33:37.639 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.35
04-Apr-2017 11:33:37.640 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: May 11 2016 21:57:08 UTC
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.35.0
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.8.0_121\jre
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_121-b13
04-Apr-2017 11:33:37.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms4096m
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx8192m
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:PermSize=256m
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxPermSize=1024m
04-Apr-2017 11:33:37.642 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
04-Apr-2017 11:33:37.643 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35\conf\logging.properties
04-Apr-2017 11:33:37.643 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
04-Apr-2017 11:33:37.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35\endorsed
04-Apr-2017 11:33:37.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35
04-Apr-2017 11:33:37.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35
04-Apr-2017 11:33:37.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35\temp
04-Apr-2017 11:33:37.646 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: C:\Program Files\Java\jdk1.8.0_121\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\RSA SecurID Token Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\CCM;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files\ServiceNow;E:\ThingWorx Analytics\MED-61147-CD-522_F000_ThingWorx-Analytics-Server-Standalone-52-2\ThingWorx-Analytics-Server-Standalone\components\vm-builder\neuron-vm-builder-bin\neuron-vm-builder;C:\Users\lschier\AppData\Local\Microsoft\WindowsApps;;C:\Program Files (x86)\Microsoft VS Code\bin;.
04-Apr-2017 11:33:37.764 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-9001"]
04-Apr-2017 11:33:37.907 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
04-Apr-2017 11:33:37.909 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
04-Apr-2017 11:33:37.912 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
04-Apr-2017 11:33:37.913 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 550 ms
04-Apr-2017 11:33:37.933 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
04-Apr-2017 11:33:37.933 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.35
04-Apr-2017 11:33:37.956 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35\webapps\Thingworx.war
04-Apr-2017 11:34:09.816 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.
After this line the Server crashes.
Solved! Go to Solution.
Hi Lukas
You may want to check the Application.log file (under ThingworxStorage/logs) for possibly more clues .
One thing that seems missing from the step you gave is the license.bin that needs to be placed in the platform settings folder (that is new for 7.4).
The license.bin is found in the downloaded media.
Hope this helps
Christophe
Hi Lukas
You may want to check the Application.log file (under ThingworxStorage/logs) for possibly more clues .
One thing that seems missing from the step you gave is the license.bin that needs to be placed in the platform settings folder (that is new for 7.4).
The license.bin is found in the downloaded media.
Hope this helps
Christophe
Thank you for the hint. I added the license file and looked at the log. I received following error:
2017-04-04 13:27:21.789+0200 [L: ERROR] [O: c.t.s.s.l.LicensingSubsystem] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Failed to load FlxCore library. Ensure it's in PATH (Windows) or LD_LIBRARY_PATH(other platforms) or set with the VM arg, -Djava.library.path. Error message : com.flexnet.licensing.DllEntryPoint.entry([B)
This led me to the assumption that i forgot startup arguments. after i added them it works now. Thank you for the help.
If anyone stumbles upon the same issue:
set "JAVA_OPTS=-Xms4096m -Xmx8192m -XX:PermSize=256m -XX:MaxPermSize=1024m -Dserver -Dd64 -XX:+UseG1GC -Dfile.encoding=UTF-8 -Djava.library.path=C:\TomKatzen\7.4P_9001\apache-tomcat-8.0.35\webapps\Thingworx\WEB-INF\extensions"
The bold part was missing at my script and the italic part needs to be set manually.
Thanks again and best regards!
The last part btw is the path to the FlxCore library that it couldn't find.
Besides that the other part that changed from 7.3 is the license file that you have to put into ThingworxPlatform