java.lang.IllegalStateException

Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web53

  • via Unknown by Przemek Bruski,
  • via Unknown by Przemek Bruski,
  • via Unknown by Przemek Bruski,
  • Stack trace

    • java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml! at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:171) at com.atlassian.config.spring.BootstrappedContainerContext.refresh(BootstrappedContainerContext.java:22) at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.refreshSpringContextAndCreateDatabase(DefaultHibernateConfigurator.java:120) at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.configureDatabase(DefaultHibernateConfigurator.java:64) at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.bootstrapDatabase(DefaultAtlassianBootstrapManager.java:253) at com.atlassian.bamboo.setup.DefaultBootstrapManager.bootstrapDatabase(DefaultBootstrapManager.java:270) at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupStandardDatabase(SetupUtilityBean.java:148) at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupEmbeddedDatabase(SetupUtilityBean.java:139) at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction.doDatabase(SetupDefaultsAction.java:69) at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction.doGeneral(SetupDefaultsAction.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) at com.opensymphony.webwork.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:35) at java.lang.Thread.run(Thread.java:662)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    2 more bugmates