ClassNotFoundException: javax.servlet.ServletContext When Starting Stash WAR in Tomcat 7
症状
atlassian-stash.log while deploying the
に次のエラーが返される。Stash WAR Version
INFO: Deploying configuration descriptor /opt/apache-tomcat-7.0.29/conf/Catalina/localhost/stash.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 Stash
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.