It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stash started with atlas-run command fails on startup

When starting stash via the Plugin SDK, it fails with the following error message:

java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getServletContext()Ljavax/servlet/ServletContext;
	at com.atlassian.stash.internal.johnson.JohnsonBypassHelper.isBypassed(JohnsonBypassHelper.java:79) ~[JohnsonBypassHelper.class:na]
	at com.atlassian.stash.internal.johnson.filters.BypassableJohnsonFilter.doFilter(BypassableJohnsonFilter.java:23) ~[BypassableJohnsonFilter.class:na]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ~[catalina.jar:na]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ~[catalina.jar:na]
	at com.atlassian.stash.internal.web.filters.RequestAttributeFilter$1.withRequest(RequestAttributeFilter.java:55) ~[RequestAttributeFilter$1.class:na]

1 answer

1 accepted

1 vote
Answer accepted

Solution

This is caused by running Stash against Tomcat 6 (it now requires tomcat 7). Please upgrade your version of the Atlassian SDK.

Alternatively, you can change your plugin's pom.xml to include the following (notice the containerId attribute):

<plugin>
    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>maven-stash-plugin</artifactId>
    <version>${amps.version}</version>
    <extensions>true</extensions>
    <configuration>
        <products>
            <product>
                <id>stash</id>
                <containerId>tomcat7x</containerId>
                <instanceId>stash</instanceId>
                <version>${stash.version}</version>
                <dataVersion>${stash.version}</dataVersion>
            </product>
        </products>
    </configuration>
</plugin>

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,766 views 1 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you