We're moving from 2.3.3 to 2.9.1. I'm pointing to an existing "data" dir. but have removed the confluence.cfg.xml so that the setup license action would fire. When attempting to access Confluence, I get the following error. I see there's a applicationContext.xml in the confluence-2.9.1.jar inside our war file. We are using the WAR version where we add our own extensions with edit-webapp, then use the Confluence build.xml to create the war deployment. What am I missing?

      Thanks,
      Jim

      2008-09-29 18:00:12,223 INFO [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 2.9.1 (build #1418) 2008-09-29 18:00:17,566 FATAL [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2008-09-29 18:00:17,597 FATAL [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2008-09-29 18:00:17,597 FATAL [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2008-09-29 18:00:17,644 INFO [com.atlassian.confluence.lifecycle] init Confluence is ready to serve
      .......

      2008-09-29 18:03:44,784 FATAL [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set
      2008-09-29 18:03:44,800 ERROR [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/setup/setuplicense.vm'
      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:32)
      at com.atlassian.confluence.setup.velocity.DynamicPluginResourceLoader.getResourceStream(DynamicPluginResourceLoader.java:28)
      at com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75)
      at com.atlassian.confluence.util.velocity.Velocity13CompatibleResourceLoader.getResourceStream(Velocity13CompatibleResourceLoader.java:36)
      at com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75)
      at com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager$DecoratorFilteredResourceLoader.getResourceStream(ConfluenceVeloci
      tyResourceManager.java:122)
      at org.apache.velocity.Template.process(Template.java:93)
      at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:363)
      at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:304)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
      at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:528)
      at com.opensymphony.webwork.dispatcher.VelocityResult.getTemplate(VelocityResult.java:146)
      at com.atlassian.xwork.results.ProfiledVelocityResult.getTemplate(ProfiledVelocityResult.java:34)
      at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:75)
      at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21)
      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)

            [CONFSERVER-13207] getComponent Spring Application context has not been set

            i have the same problem with conf 2.10 and tomcat 5 or tomcat 6
            trying to set up a confluence develop environment

            008-12-12 21:24:28,218 FATAL [http-81-2] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set
             -- referer: http://localhost:81/manager/html | url: /confluence/setup/setuplicense.action | userName: anonymous | action: setuplicense
            2008-12-12 21:24:28,250 ERROR [http-81-2] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/setup/setuplicense.vm'
             -- referer: http://localhost:81/manager/html | url: /confluence/setup/setuplicense.action | userName: anonymous | action: setuplicense
            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:32)
            	at com.atlassian.confluence.setup.velocity.DynamicPluginResourceLoader.getResourceStream(DynamicPluginResourceLoader.java:28)
            	at com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75)
            	at com.atlassian.confluence.util.velocity.Velocity13CompatibleResourceLoader.getResourceStream(Velocity13CompatibleResourceLoader.java:36)
            	at com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75)
            	at com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager$DecoratorFilteredResourceLoader.getResourceStream(ConfluenceVelocityResourceManager.java:122)
            	at org.apache.velocity.Template.process(Template.java:93)
            	at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:363)
            	at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:304)
            	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
            	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
            	at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:528)
            	at com.opensymphony.webwork.dispatcher.VelocityResult.getTemplate(VelocityResult.java:146)
            	at com.atlassian.xwork.results.ProfiledVelocityResult.getTemplate(ProfiledVelocityResult.java:34)
            	at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:75)
            	at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21)
            	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)
            

            any idea what to do ??

            thanks
            martin

            Martin Mitry added a comment - i have the same problem with conf 2.10 and tomcat 5 or tomcat 6 trying to set up a confluence develop environment 008-12-12 21:24:28,218 FATAL [http-81-2] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set -- referer: http: //localhost:81/manager/html | url: /confluence/setup/setuplicense.action | userName: anonymous | action: setuplicense 2008-12-12 21:24:28,250 ERROR [http-81-2] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/setup/setuplicense.vm' -- referer: http: //localhost:81/manager/html | url: /confluence/setup/setuplicense.action | userName: anonymous | action: setuplicense 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:32) at com.atlassian.confluence.setup.velocity.DynamicPluginResourceLoader.getResourceStream(DynamicPluginResourceLoader.java:28) at com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75) at com.atlassian.confluence.util.velocity.Velocity13CompatibleResourceLoader.getResourceStream(Velocity13CompatibleResourceLoader.java:36) at com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75) at com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager$DecoratorFilteredResourceLoader.getResourceStream(ConfluenceVelocityResourceManager.java:122) at org.apache.velocity.Template.process(Template.java:93) at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:363) at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:304) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077) at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:528) at com.opensymphony.webwork.dispatcher.VelocityResult.getTemplate(VelocityResult.java:146) at com.atlassian.xwork.results.ProfiledVelocityResult.getTemplate(ProfiledVelocityResult.java:34) at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:75) at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21) 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) any idea what to do ?? thanks martin

            Hi Jim

            Glad that you were able to resolve this yourself using the documentation.

            I am marking this issue as resolved - feel free to reopen it or to start a new one if you have any more problems.

            Thanks,
            Mark

            Mark Hrynczak (Inactive) added a comment - Hi Jim Glad that you were able to resolve this yourself using the documentation. I am marking this issue as resolved - feel free to reopen it or to start a new one if you have any more problems. Thanks, Mark

            Jim Clark added a comment -

            I believe i've resolved this
            http://confluence.atlassian.com/display/DOC/Known+Issues+for+WebLogic

            Confluence must be deployed as an exploded war file to WebLogic.
            Otherwise you may experience errors as such:

            java.lang.IllegalStateException: Spring Application context has not been set
            at bucket.container.SpringContainerContext.getComponent(SpringContainerContext.java:98)

            Jim Clark added a comment - I believe i've resolved this http://confluence.atlassian.com/display/DOC/Known+Issues+for+WebLogic Confluence must be deployed as an exploded war file to WebLogic. Otherwise you may experience errors as such: java.lang.IllegalStateException: Spring Application context has not been set at bucket.container.SpringContainerContext.getComponent(SpringContainerContext.java:98)

            Jim Clark added a comment -

            It appears as if my war and web.xml are configured correctly and the applicationContext.xml should be found in the classpath since the confluence-2.9.1.jar is in the WEB-INF/lib dir. This describes the expected behavior, but WebLogic is not behaving correctly? (http://www.jroller.com/raible/entry/package_your_spring_config_files)

            Jim Clark added a comment - It appears as if my war and web.xml are configured correctly and the applicationContext.xml should be found in the classpath since the confluence-2.9.1.jar is in the WEB-INF/lib dir. This describes the expected behavior, but WebLogic is not behaving correctly? ( http://www.jroller.com/raible/entry/package_your_spring_config_files )

            Jim Clark added a comment -

            With the 2.3.3 build, the applicationContext.xml and other files referenced in web.xml contextConfigLocation were copied in to the WEB-INF\classes but are not in 2.9.1, so I'll need to figure out where these files are located and make sure they get copied before war'ing.

            Jim Clark added a comment - With the 2.3.3 build, the applicationContext.xml and other files referenced in web.xml contextConfigLocation were copied in to the WEB-INF\classes but are not in 2.9.1, so I'll need to figure out where these files are located and make sure they get copied before war'ing.

              Unassigned Unassigned
              2f854a405aff Jim Clark
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: