Confluence won't start due to error could not find the main class program will exit because of a syntax problem in Setenv file
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
Confluence fails to start.
catalina.log に次のエラーが返される。
Could not find the main class: Xms256m. Program will exit.
Exception in thread "main" java.lang.NoClassDefFoundError: Xms256m
Caused by: java.lang.ClassNotFoundException: Xms256m
原因
Confluence fails to start due to some incorrect parameters in tomcat configuration files such as setenv.sh or bat file.
In the message above we can see the part where the Xms256m is stated. This part can be different depending on the incorrect syntax.
ソリューション
Open the setenv.sh or bat file (depending on the OS) and check for syntax errors. In the case above, the problem was a missing dash ( - ) in front of the Xms256m word. Compare the file with a standard one if necessary.
この内容はお役に立ちましたか?