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

Troubleshooting Installation

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the 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
...

Cause

This ERROR happens because your are trying to deploy Stash on an Apache Tomcat 7 which is not supported yet: Supported platforms.

Resolution

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

Was this helpful?

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