安装和配置 > 安装 ThingWorx > 安装附录 > 安装故障排除
安装故障排除
问题
可能的解决方案
如何在 ThingWorx 中启用跨源资源共享 (CORS)?
启用 CORS 允许将请求从域/网站发送到在其他服务器上部署的 ThingWorx 实例。可通过更新 Apache Tomcat web.xml 文件来完成此操作。 https://www.ptc.com/en/support/article?n=CS229450 中提供了详细的处理步骤。
Tomcat 安装和 Thingworx.war 文件部署完成后,Composer 无法加载,原因为 404 error Application not found
访问 Composer 时验证 Tomcat 上使用的端口是否正确
检查代理服务器/重定向
验证 Thingworx.war 文件及其 <Tomcat directory>/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。如果不存在,则按照 安装 Oracle Java 和 Apache Tomcat (RHEL) 中的步骤安装 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 文件夹中,不做任何编辑或保存。