Cannot run Stash 1.x on Tomcat 7/JDK 7


On this page

Still need help?

The Atlassian Community is here for you.

Ask the community


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


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.


Run Stash with the following custom flag:,javax.servlet.,sun.,com.sun.,org.w3c.dom.

Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.