ClassNotFoundException: javax.servlet.ServletContext When Starting Bitbucket Server WAR in Tomcat 7
プラットフォームについて: 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 は除く
症状
The following appears in the atlassian-bitbucket.log while deploying the :Bitbucket Server WAR Version
INFO: Deploying configuration descriptor /opt/apache-tomcat-7.0.29/conf/Catalina/localhost/bitbucket.xml
Exception in thread "Spring executor 7" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handler' defined in URL [bundle://26.0:0/META-INF/spring/web-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/ServletContext
...
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
...
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext
...
原因
This ERROR happens because your are trying to deploy Bitbucket Server on an Apache Tomcat 7 which is not supported yet: Supported platforms.
ソリューション
Downgrade your Apache Tomcat 7 to an Apache Tomcat 6 and try to deploy the Application again or otherwise you can always use the embedded Tomcat.
この内容はお役に立ちましたか?