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

Java.lang.NoSuchMethodError when starting Stash through Windows?

Artomas Apr 27, 2013


When I start my Stash server I am running into this error, Was wondering if perhaps someone could shed some light on the fix!

Thank you!

Using CATALINA_BASE: "C:\stashwww"
Using CATALINA_HOME: "C:\stashwww"
Using CATALINA_TMPDIR: "C:\stashwww\temp"
Using JRE_HOME: "C:\Java"
Using CLASSPATH: "C:\stashwww\bin\bootstrap.jar;C:\stashwww\bin\tomcat-jul
Apr 27, 2013 6:53:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C:\stashwww
Apr 27, 2013 6:53:31 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-7990
Apr 27, 2013 6:53:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 434 ms
Apr 27, 2013 6:53:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 27, 2013 6:53:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Apr 27, 2013 6:54:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-7990
java.lang.NoSuchMethodError: org.apache.catalina.Context.addLifecycleListener(Lo
at org.apache.catalina.core.ThreadLocalLeakPreventionListener.registerCo
at org.apache.catalina.core.ThreadLocalLeakPreventionListener.registerLi
at org.apache.catalina.core.ThreadLocalLeakPreventionListener.registerLi
at org.apache.catalina.core.ThreadLocalLeakPreventionListener.registerLi
at org.apache.catalina.core.ThreadLocalLeakPreventionListener.lifecycleE
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(

2 answers

1 accepted

1 vote
Answer accepted
Charles O'Farrell Apr 27, 2013

Hi Ermen,

Stash is now required to run with Tomcat 7. You can either force tomcat7 in the pom.xml or upgrade the SDK to the latest version. See these answers for more help.



0 votes
Ubisoft Mar 24, 2015

We had the same error but for Confluence:

java.lang.NoSuchMethodError: org.apache.catalina.Context.addLifecycleListener(Lo

The problem was that the tomcat jar files were installed in the $CATALINA_BASE/lib and the CATALINA_HOME was pointing to a different version of tomcat than what was in the $CATALINA_BASE/lib.

The solution was to delete all file from  $CATALINA_BASE/lib except mysql-connector-java-*-bin.jar


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 :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

2,014 views 1 19
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