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

Atlassian JIRA | Jim Clark | 8 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    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)

    Atlassian JIRA | 8 years ago | Jim Clark
    java.lang.IllegalStateException: Spring Application context has not been set
  3. 0

    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)

    Atlassian JIRA | 8 years ago | Jim Clark
    java.lang.IllegalStateException: Spring Application context has not been set

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Spring Application context has not been set

      at com.atlassian.spring.container.SpringContainerContext.getComponent()
    2. com.atlassian.spring
      ContainerManager.getComponent
      1. com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)
      2. com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:32)
      2 frames
    3. com.atlassian.confluence
      ConfluenceVelocityResourceManager$DecoratorFilteredResourceLoader.getResourceStream
      1. com.atlassian.confluence.setup.velocity.DynamicPluginResourceLoader.getResourceStream(DynamicPluginResourceLoader.java:28)
      2. com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75)
      3. com.atlassian.confluence.util.velocity.Velocity13CompatibleResourceLoader.getResourceStream(Velocity13CompatibleResourceLoader.java:36)
      4. com.atlassian.confluence.util.velocity.ResourceLoaderWrapper.getResourceStream(ResourceLoaderWrapper.java:75)
      5. com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager$DecoratorFilteredResourceLoader.getResourceStream(ConfluenceVelocityResourceManager.java:122)
      5 frames
    4. Apache Velocity
      Template.process
      1. org.apache.velocity.Template.process(Template.java:93)
      1 frame
    5. com.atlassian.confluence
      ConfigurableResourceManager.getResource
      1. com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:363)
      2. com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:304)
      2 frames
    6. Apache Velocity
      VelocityEngine.getTemplate
      1. org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
      2. org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
      3. org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:528)
      3 frames
    7. WebWork
      VelocityResult.getTemplate
      1. com.opensymphony.webwork.dispatcher.VelocityResult.getTemplate(VelocityResult.java:146)
      1 frame
    8. com.atlassian.xwork
      ProfiledVelocityResult.getTemplate
      1. com.atlassian.xwork.results.ProfiledVelocityResult.getTemplate(ProfiledVelocityResult.java:34)
      1 frame
    9. WebWork
      VelocityResult.doExecute
      1. com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:75)
      1 frame
    10. com.atlassian.xwork
      ProfiledVelocityResult.doExecute
      1. com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21)
      1 frame
    11. WebWork
      WebWorkResultSupport.execute
      1. com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:116)
      1 frame
    12. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:263)
      2. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:187)
      2 frames