Cannot run Stash 1.x on Tomcat 7/JDK 7
Symptoms
The following appears in the atlassian-stash.log
:
2012-08-07 11:53:55,212 ERROR [Spring executor 5] c.a.plugin.osgi.factory.OsgiPlugin Unable to start the Spring context for plugin com.atlassian.crowd.embedded.admin
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handler' defined in URL [bundle://51.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
...
Cause
This ERROR
happens because your are trying to deploy Stash 1.x
on Apache Tomcat 7
which is not supported. Tomcat 7 is supported as of Stash 2.0.
Workaround
Run Stash
with the following custom flag: -Datlassian.org.osgi.framework.bootdelegation=javax.servlet,javax.servlet.,sun.,com.sun.,org.w3c.dom.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.