安装故障排除
问题
可能的解决方案
如何在 ThingWorx 中启用跨源资源共享 (CORS)?
启用 CORS 允许将请求从域/网站发送到在其他服务器上部署的 ThingWorx 实例。可通过更新 Apache Tomcat web.xml 文件来完成此操作。https://www.ptc.com/en/support/article?n=CS229450 中提供了详细的处理步骤。
在安装 Tomcat 并部署 Thingworx.war 文件后,Composer 未启动并发出错误消息“404 错误: 未找到应用程序”。
验证访问 Composer 时 Tomcat 上所使用的端口是否正确。
检查代理服务器重定向。
验证 Thingworx.war 文件及其在 <Tomcat 目录>/webapps 中的对应文件夹的大小写是否正确 (应为 Thingworx,而不是 thingworxThingWorx)
* 
如果文件夹或 WAR 文件在部署时的大小写错误,请关闭 Tomcat 服务器,从 webapps 中移除 "thingworx" 文件夹,然后以正确大小写重命名 thingworx.war 文件,并重新启动 Tomcat。
验证所访问的 URL 是否为 http://<server>:<port>/Thingworx (不是 http://<server>:<port>/ThingWorx)
如果 ThingWorx 安装完成后在 RHEL 环境中出现“404 错误:未找到页面”,请检查以下步骤:
验证 /usr/lib/jvm/ 文件夹中是否存在 JDK。如果 JDK 不存在,则按照安装 Java、Apache Tomcat 和 ThingWorx 中的步骤安装 Java。
验证 JAVA_HOME 环境变量是否具有 JDK 路径。例如,
JAVA_HOME = /usr/lib/jvm/jdk1.8.144
thingworx.war部署时发生问题。
验证 ThingworxStorage/extensions/web-inf 文件夹中是否包含许可库 (DLL 文件)。
部署 ThingWorx 时出现以下错误:

org.apache.catalina.core.ApplicationContext.log HTMLManager:
FAIL - Deploy Upload Failed, Exception:
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (90883556)
exceeds the configured maximum (52437800)
java.lang.IllegalStateException:
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (90883556)
exceeds the configured maximum (52437800)
at org.apache.catalina.connector.Request.parseParts(Request.java:2871
必须增加 Tomcat web.xml 文件的最大文件大小 (默认值为 50 MB)。此文件位于:
<path to Tomcat>\Apache Software Foundation\Tomcat
8.5\webapps\manager\WEB-INF
1. 打开 web.xml
2. 将最大文件大小和最大请求大小更改为 104857600。
3. 保存并关闭文件。
4. 重新启动 Tomcat。
导入 PTC 许可扩展时出现以下错误消息:
is licensed but cannot find feature in license.bin file
访问 PTC 支持站点的管理许可部分,确认与您的授权相匹配的正确许可文件。如果在许可证方面需要进一步协助,请联系许可证管理团队。
尝试取消部署 ThingWorx 时出现以下错误消息:
FAIL - Unable to delete [<path to Tomcat>\webapps\Thingworx].
The continued presence of this file may cause problems.
Due to FlxCore64.dll
(<path to Tomcat>\webapps\Thingworx\WEB-INF\extensions\FlxCore64.dll)
在取消部署前,从 Tomcat 的 Java 的配置中移除 -Djava.library.path。有关此错误和解决方案的详细信息,请参阅此技术支持文章
ConfigurationLog.log 中出现类似于以下内容的错误消息:
2017-03-10 05:56:07.097-0500 [L: ERROR] [O: ] [I: ] [U: SuperUser] [S: ]
[T: localhost-startStop-1]
**********LICENSING ERROR ANALYSIS
2017-03-10 05:56:07.097-0500 [L: ERROR] [O: ] [I: ] [U: SuperUser] [S: ]
[T: localhost-startStop-1]
/Library/flexs is listed as a java.library.path but it does not exist.
/Library/blah is listed as a java.library.path but it does not exist.
/Library/zzz is listed as a java.library.path but it does not exist.
No flx dll files found.
Is the java.library.path set?
2017-03-10 05:56:07.097-0500 [L: ERROR] [O: ] [I: ] [U: SuperUser] [S: ]
[T: localhost-startStop-1]
**********END LICENSING ERROR ANALYIS
日志消息可验证许可文件是否存在问题。
平台启动时弹出类似于以下内容的错误消息:

2017-06-12 11:33:59.204+0530 [L: ERROR] [O: c.t.s.s.l.LicensingSubsystem]
[I: ] [U: SuperUser]
[S: ] [T: localhost-startStop-1] [message: The size of provided data is incorrect.]
2017-06-12 11:33:59.205+0530 [L: ERROR] [O: c.t.s.s.l.LicensingSubsystem] [I: ]
[U: SuperUser] [S: ] [T: localhost-startStop-1] ======================================
2017-06-12 11:33:59.205+0530 [L: ERROR] [O: c.t.s.s.l.LicensingSubsystem] [I: ]
[U: SuperUser] [S: ] [T: localhost-startStop-1]
Invalid License file: /ThingworxPlatform\license.bin
2017-06-12 11:33:59.205+0530 [L: ERROR] [O: c.t.s.s.l.LicensingSubsystem] [I: ]
[U: SuperUser] [S: ] [T: localhost-startStop-1] ======================================
2017-06-12 11:33:59.205+0530 [L: WARN] [O: c.t.s.ThingWorxServer] [I: ]
[U: SuperUser] [S: ] [T: localhost-startStop-1] Shutting down the Platform.
许可文件在浏览器中可能已打开/编辑/保存。再次下载许可证文件,将其重命名为 license_capability_response.bin,然后将其置于 ThingworxPlatform 文件夹中,而不做任何编辑或保存。
如果未生成许可证,且生成了以下错误消息:
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:1704)
at at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:2597)
at ... 62 common frames omitted
验证 Tomcat 用户是否具有 ThingworxStorageThingworxPlatform 文件夹的读写权限。
这对您有帮助吗?