ClassNotFoundException: javax.servlet.ServletContext When Starting Bitbucket Server WAR in Tomcat 7

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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.

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.