Error on Startup Confluence
Asked by Jacqueline Wutke:

At Startup we've got the following error:

13-Dec-2017 12:19:10.031 WARNUNG \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server} Setting property 'debug' to '0' did not find a matching property.  
13-Dec-2017 12:19:10.139 WARNUNG \[main\] org.apache.catalina.startup.SetAllPropertiesRule.begin \[SetAllPropertiesRule\]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.  
13-Dec-2017 12:19:10.155 WARNUNG \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.  
13-Dec-2017 12:19:10.165 WARNUNG \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.  
13-Dec-2017 12:19:10.236 WARNUNG \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.  
13-Dec-2017 12:19:10.748 INFORMATION \[main\] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler \["http-nio-8090"\]  
13-Dec-2017 12:19:11.056 INFORMATION \[main\] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read  
13-Dec-2017 12:19:11.062 INFORMATION \[main\] org.apache.catalina.startup.Catalina.load Initialization processed in 1164 ms  
13-Dec-2017 12:19:11.078 INFORMATION \[main\] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone  
13-Dec-2017 12:19:11.078 INFORMATION \[main\] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.41  
13-Dec-2017 12:19:20.983 INFORMATION \[localhost-startStop-2\] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor D:\\Atlassian\\Confluence566\\conf\\Standalone\\localhost\\synchrony-proxy.xml  
13-Dec-2017 12:19:20.993 WARNUNG \[localhost-startStop-2\] org.apache.catalina.startup.SetContextPropertiesRule.begin \[SetContextPropertiesRule\]{Context} Setting property 'debug' to '0' did not find a matching property.  
13-Dec-2017 12:19:23.021 INFORMATION \[localhost-startStop-2\] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: \[com.atlassian.synchrony.proxy.SynchronyDispatcherServletInitializer@787712fe\]  
13-Dec-2017 12:19:23.296 INFORMATION \[localhost-startStop-2\] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcher'  
13-Dec-2017 12:19:24.660 INFORMATION \[localhost-startStop-2\] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor D:\\Atlassian\\Confluence566\\conf\\Standalone\\localhost\\synchrony-proxy.xml has finished in 3,677 ms  
13-Dec-2017 12:19:24.664 INFORMATION \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8090"\]  
13-Dec-2017 12:19:24.674 INFORMATION \[main\] org.apache.catalina.startup.Catalina.start Server startup in 13611 ms  
13-Dec-2017 12:19:49.153 SCHWERWIEGEND \[http-nio-8090-exec-1\] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage\[errorCode=500, location=/500page.jsp\]  
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)  
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)  
at com.atlassian.confluence.plugin.servlet.filter.ServletFilterModuleContainerFilter.getServletModuleManager(ServletFilterModuleContainerFilter.java:20)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:62)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:65)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.web.filter.ZipkinTracingFilter.doFilter(ZipkinTracingFilter.java:54)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720)  
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:468)  
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)  
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)  
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:442)  
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:301)  
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:396)  
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:176)  
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)  
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)  
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)  
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)  
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)  
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1524)  
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)  
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)  
at com.atlassian.confluence.util.LazyComponentReference$Accessor.get(LazyComponentReference.java:42)  
at com.atlassian.util.concurrent.Lazy$Strong.create(Lazy.java:85)  
at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325)  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)  
... 35 more


Answers:
author: AnnWorley
body: Hello, the error you are reporting can have any of several causes:

```
13-Dec-2017 12:19:49.153 SCHWERWIEGEND [http-nio-8090-exec-1] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
```

Please see the causes and resolutions described in this article to get Confluence running again: [Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html)