インストールのトラブルシューティング
問題
考えられる解決策
ThingWorx で Cross Origin Resource Sharing (CORS) を有効にするにはどうすればよいですか?
CORS を有効にすることで、別のサーバーに展開されている ThingWorx のインスタンスにドメイン/Web サイトからリクエストを行うことができます。これを行うには Apache Tomcat の web.xml ファイルを更新します。プロセスの詳細な手順については、https://www.ptc.com/en/support/article?n=CS229450 を参照してください。
Tomcat をインストールして Thingworx.war ファイルを展開した後、Composer が起動せず、「404 error: Application not found」というメッセージが表示される。
Composer のアクセス時に Tomcat で正しいポートが使用されていることを確認します。
プロキシサーバーのリダイレクトをチェックします。
<Tomcat ディレクトリ>/webapps 内の Thingworx.war ファイルと対応するフォルダの大文字小文字表記が正しいことを確認します (Thingworx が正しく、thingworxThingWorx は誤りです)。
* 
フォルダまたは WAR ファイルが、大文字小文字表記の正しくない状態で展開された場合は、Tomcat サーバーをシャットダウンし、webapps から "thingworx" フォルダを除去し、大文字小文字表記が正しくなるように thingworx.war のファイル名を変更して、Tomcat を再起動します。
アクセス先の URL が http://<サーバー>:<ポート>/Thingworx であること (http://<サーバー>:<ポート>/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. max-file-size と max-request-size を 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 ユーザーに ThingworxStorage および ThingworxPlatform フォルダに対する読み取りと書き込みのアクセス許可があることを確認します。
これは役に立ちましたか?