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

Spring Application context has not been set Edited

I have installed confluence as a free trial on my debian 9 server. Everything was working, but I didn't finished the configuration part. I have just installed it and it was reachable in the browser without errors. Then I tried to follow this guide to config confluence to run behind my apache:

Directly after that I followed this guide to also config SSL settings:

But suddenly I'm getting the following error, when I open the site in my browser. Doesn't matter if I open the origin URL with the port or the new proxied URL. On both this error appears. And even if I undo all the customizations in the conf/server.xml and on my apache, the error still appears. Then I tried to to uninstall confluence, but the command "uninstall" can't be found. So I just rerun the installer, but I have still the same problem. Any idea how I can get it up and running again on the origin way (without apache) to try it again with apache?

Here is the error:

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(
	at com.atlassian.util.concurrent.LazyReference.get(
	at com.atlassian.confluence.setup.webwork.ConfluenceXWorkTransactionInterceptor.getTransactionManager(
	at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(
	at com.atlassian.confluence.xwork.SetupIncompleteInterceptor.intercept(
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(
	at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(
	at com.atlassian.confluence.setup.actions.SetupCheckInterceptor.intercept(
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(
	at com.opensymphony.xwork.DefaultActionProxy.execute(
	at com.atlassian.confluence.servlet.ConfluenceServletDispatcher.serviceAction(
	at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(


EDIT: Btw, I have also installed Jira and there is everything working with apche and SSL.


1 answer

0 votes

Hi Moritz,

If you're still having issues with this, I would recommend having a look at this article:

There are 10 separate causes listed there, so please review each one in your case and see which is affecting your instance.

Let us know if you have any trouble.



Rather unhelpful answer from the support team. The person already said the SSL configuration they initialised was the culprit of the problem. Yet, you're sending them to a page that has 10 causes 10 of which are not related to the SSL configuration breaking Spring.


According to the user, the issue appeared after configuring a proxy as well as configuring the SSL. Both of these changes can cause issues with invalid confluence.cfg.xml configuration, or with the server.xml file, which is outlined in the above document.

If you are working with an instance without any data, it may be best to perform step 10, or replace the server.xml file with a fresh copy from a new Confluence installation to confirm the issue is not with your configuration.

If you are having similar issues, please feel free to review the recommendations from the article I've linked, and if you're still not able to resolve the problem, you can raise a new question here. For that I would recommend including the lines from your Confluence Server logs regarding this Spring Application Context error. This will contain further information than is contained in the logs displayed in the Confluence UI.

Thank you for your understanding!




i had the same problem installing confluence + jira under win10 VM in hyper v.

i deleted the confluence.cfg.xml in C:\Program Files\Atlassian\Application Data\Confluence


after that i accessed the wizard installation and i was able to configure confluence again.


this doesnt happen under linux.






That sounds like a very interesting case, indeed! I would recommend raising this as a new question. The reason being is this error itself can occur in a multitude of reasons, and the fact that you're able to replicate it in Hyper V on Windows, it sounds like it may be a different cause.

Let me know if you have any trouble raising a new question!



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,761 views 15 37
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