Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-4014

Confluence can only deploy as an expanded WAR under Tomcat 5

      A customer reported that attempting to deploy an unexploded WAR against tomcat leads to the following error:

      Cause:
      java.lang.IllegalStateException: Spring Application context has not been set

      Stack Trace: [hide]

      java.lang.IllegalStateException: Spring Application context has not been set
      at bucket.container.SpringContainerContext.getComponent(SpringContainerContext.java:77)
      at bucket.container.ContainerManager.getComponent(ContainerManager.java:32)
      at com.atlassian.confluence.setup.velocity.DynamicPluginResourceLoader.getResourceStream(DynamicPluginResourceLoader.java:15)
      at org.apache.velocity.Template.process(Template.java:136)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:466)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:384)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:814)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:796)
      at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:512)
      at com.opensymphony.webwork.dispatcher.VelocityResult.getTemplate(VelocityResult.java:146)
      at bucket.util.profiling.ProfiledVelocityResult.getTemplate(ProfiledVelocityResult.java:25)
      at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:75)
      at bucket.util.profiling.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:18)
      at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:116)
      at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:263)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:187)
      at com.atlassian.confluence.setup.actions.SetupCheckInterceptor.intercept(SetupCheckInterceptor.java:28)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:40)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.atlassian.confluence.pages.actions.PageAwareInterceptor.intercept(PageAwareInterceptor.java:84)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:25)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.atlassian.confluence.util.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:90)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115)
      at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:229)
      at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
      at com.atlassian.confluence.util.profiling.ProfilingPageFilter.parsePage(ProfilingPageFilter.java:150)
      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:82)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at bucket.custom.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:28)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
      at com.atlassian.confluence.util.error.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:27)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.atlassian.core.filters.gzip.GzipFilter.doFilter(GzipFilter.java:61)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
      at org.apache.jk.common.HandlerRequest.nextInvoke(HandlerRequest.java:437)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
      at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:534)

      Referer URL: Unknown

      Build Information:
      Uptime: 14 hours, 56 minutes, 32 seconds
      Version: 1.4.3
      Build Number: 219

      Server Information:
      Application Server: Apache Tomcat/5.0.30
      Servlet Version: 2.4
      Database Dialect: null

      Memory Information:
      Total Memory: 253 MB
      Free Memory: 211 MB
      Used Memory: 42 MB

      System Information:
      System Date: Friday, 09 Sep 2005
      System Time: 09:24:55
      System Favourite Colour: Lime
      Java Version: 1.4.2_08
      Java Vendor: Sun Microsystems Inc.
      JVM Version: 1.0
      JVM Vendor: Sun Microsystems Inc.
      JVM Implementation Version: 1.4.2_08-b03
      Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition
      Java VM: Java HotSpot(TM) Server VM
      User Name: admin
      User Timezone: US/Eastern
      Operating System: Linux 2.4.21-15.9.1
      OS Architecture: i386

      Request
      Information:
      URL: http://localhost:8080/confluence/webapp/setup/setuplicense.action

      • Scheme: http
      • Server: pi119c2n8.ms.com
      • Port: 10001
      • URI: /releng/confluence/webapp/500page.jsp
      • - Context Path: /releng/confluence/webapp
      • - Servlet Path: /500page.jsp
      • - Path Info: null
      • - Query String: null

      Attributes:

      • javax.servlet.forward.request_uri : /releng/confluence/webapp/setup/setuplicense.action
      • javax.servlet.forward.context_path : /releng/confluence/webapp
      • javax.servlet.forward.servlet_path : /setup/setuplicense.action
      • javax.servlet.forward.path_info : /500page.jsp
      • javax.servlet.error.exception : java.lang.IllegalStateException: Spring Application context has not been set
      • javax.servlet.error.message : Spring Application context has not been set
      • com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true
      • _sitemesh_using_stream : false
      • javax.servlet.error.request_uri : /releng/confluence/webapp/setup/setuplicense.action
      • javax.servlet.error.status_code : 500
      • _sitemesh_filterapplied : true
      • javax.servlet.error.servlet_name : action
      • webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@117b450
      • javax.servlet.error.exception_type : class java.lang.IllegalStateException
      • javax.servlet.jsp.jspException : java.lang.IllegalStateException: Spring Application context has not been set
      • sessioninview.FILTERED : true
      • com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true

      Parameters:

      Logging:
      0 log statements generated by this request.

          Form Name

            [CONFSERVER-4014] Confluence can only deploy as an expanded WAR under Tomcat 5

            Matt Ryall added a comment -

            The above information is not enough to confirm the problem or reproduce it.

            Please raise a support case with https://support.atlassian.com if you are having problems setting up Confluence and we can investigate further.

            Matt Ryall added a comment - The above information is not enough to confirm the problem or reproduce it. Please raise a support case with https://support.atlassian.com if you are having problems setting up Confluence and we can investigate further.

            This is reproduced on Mac OS X 10.6.3 (java 1.6.0_20 64bit) with Tomcat 6.0.29 and Confluence 3.3.

            Even worse than that, even in exploded mode the setup starts to appear but fails with "Error occurred during template rendering: Invocation of method 'getCompletedSteps' in class com.atlassian.confluence.setup.DefaultSetupPersister threw exception java.lang.NullPointerException at /decorators/includes/setupstep.vmd[line 3, column 44]. Contact your administrator for assistance."

            Evgeny Zislis added a comment - This is reproduced on Mac OS X 10.6.3 (java 1.6.0_20 64bit) with Tomcat 6.0.29 and Confluence 3.3. Even worse than that, even in exploded mode the setup starts to appear but fails with "Error occurred during template rendering: Invocation of method 'getCompletedSteps' in class com.atlassian.confluence.setup.DefaultSetupPersister threw exception java.lang.NullPointerException at /decorators/includes/setupstep.vmd [line 3, column 44] . Contact your administrator for assistance."

            It would be nice to find out how to reproduce this issue so that we could fix it.

            Andrew Lynch (Inactive) added a comment - It would be nice to find out how to reproduce this issue so that we could fix it.

            Gili added a comment -

            This occurs under Tomcat 6.0.14 (latest version as of this post) too.

            Gili added a comment - This occurs under Tomcat 6.0.14 (latest version as of this post) too.

            I had this problem on Confluence 2.5 build 805

            Environment:
            Windows 2003 (5.2 x86)
            Tomcat: Apache Tomcat/5.5.23
            JVM: 1.5.0_11-b03

            Apache Tomcat installed to default location
            Confluence context pointed to: C:\Atlassian\confluence-2.5\dist\atlassian-confluence-2.5.war

            unzipping the war and pointing to the directory resolved the issue

            Maxx Daymon added a comment - I had this problem on Confluence 2.5 build 805 Environment: Windows 2003 (5.2 x86) Tomcat: Apache Tomcat/5.5.23 JVM: 1.5.0_11-b03 Apache Tomcat installed to default location Confluence context pointed to: C:\Atlassian\confluence-2.5\dist\atlassian-confluence-2.5.war unzipping the war and pointing to the directory resolved the issue

            I reproduced this behaviour under Solaris, when I tried to deploy packaged war to tomcat 5.5.20. I'm using java6.

            Jozef Babjak added a comment - I reproduced this behaviour under Solaris, when I tried to deploy packaged war to tomcat 5.5.20. I'm using java6.

            The same user that had the error Tomcat 5.5.12 on FreeBSD had the same problem with 5.5.20.

            Don Willis added a comment - The same user that had the error Tomcat 5.5.12 on FreeBSD had the same problem with 5.5.20.

            Don Willis added a comment -

            This was recently reproduced by somebody evaluating Confluence. They were using Tomcat 5.5.12 on a BSD box.

            I was unable to reproduce it on a Windows XP box running Tomcat 5.5.20.

            Don Willis added a comment - This was recently reproduced by somebody evaluating Confluence. They were using Tomcat 5.5.12 on a BSD box. I was unable to reproduce it on a Windows XP box running Tomcat 5.5.20.

            Matt Ryall added a comment -

            This doesn't seem to be a problem any more. Tested with Confluence 2.2.9 and Tomcat 5.5.17.

            Matt Ryall added a comment - This doesn't seem to be a problem any more. Tested with Confluence 2.2.9 and Tomcat 5.5.17.

            Sliding out of 1.5 - won't have time to fix it before then.

            Mike Cannon-Brookes added a comment - Sliding out of 1.5 - won't have time to fix it before then.

              matt@atlassian.com Matt Ryall
              jens@atlassian.com jens
              Affected customers:
              3 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: