A just installed stash doesn't work

Dear sirs,

I just installed a stash instance on a linux machine, on a brand new microsoft Virtual Machine, on which is running and working an evaluation version of Jira.

I followed all steps described in https://confluence.atlassian.com/display/STASH/Installing+Stash+on+Linux+and+Mac, with an user created as in https://confluence.atlassian.com/display/STASH/Supported+platforms (by the way, I am not sure about notes ??Deploying multiple Atlassian applications in a single Tomcat container is not supported.?? and ??Stash does not currently support virtualised environments.??).

After step 7 of described procedure, web server reply with

HTTP Status 500 -

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?











note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

I tried solutions described in https://confluence.atlassian.com/display/STASHKB/The+Spring+WebApplicationContext+could+not+be+started, but that does not work.

Have you any suggestion?

3 answers

1 accepted

0 votes
Accepted answer

Hi Nicola,

The above exception does not show the actual cause. Please create a support request under https://support.atlassian.com, with your full logs attached, and hopefully we can help you work out what's wrong.



Hi Charles,

thank you for redirection.

Hi all,

i have the same problem. I tried to start the stash service with following jdks: oracle jdk 1.7 and open jdk 1.6 (with an attribute JVM_SUPPORT_RECOMMENDED_ARGS="-Dstash.allow.openjdk=true" in the setenv.sh file). (i use GIT Version 1.8; Ubuntu 12.04.1 LTS; STASH Version 1.3.1). Do you have some solutions?

best regards


Hi Michael,

I'm afraid we need more information than that. When you try to login to stash do you see an error message about not supporting OpenJDK? If you're still seeing that after adding that openjdk flag then you haven't added the system property to the right place. If there error message is different, or in any case, you probably want to raise a support ticket with your logs attached so we can help you further. Unfortunately "No WebApplicationContext found" can mask all manner of sins, and we can't really tell what the underlying problem is just from that.



PS. As an aside we don't officially support OpenJDK. While that flag will bypass our check, we can't guarantee that everything will work as expected. Now, obviously. OpenJDK isn't all that different than Oracle JDK but we _do_ occassionally find minor (and subtle) differences; if you're running on production I would highly recommend downloading the Oracle JDK just-in-case.

ok thanks,

i installed the Oracle JDK again and after that, the application stash works fine. But after the installation of oracle JDK, the page of confluence is defect: http://s1.directupload.net/file/d/3098/v8nz42mb_jpg.htm . Confluence works only with Open JDK. Do I still make any settings in confluence?

best regards


Hi Michael,

I'm afraid I don't quite know what you mean. Confluence should work just as well with Oracle JDK, and in fact doesn't officially support OpenJDK either. The screenshot that you have attached looks a little strange; have you tried clearing your browser cache? Do you have any plugins installed that might be affecting the look of Confluence? If you think upgrading Java is the problem, you can still manually use OpenJDK by setting the JAVA_HOME environment variable just for Confluence, although I don't really see how that would fix your issue.

Let me know if that helps or not.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,923 views 7 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you