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

Oracle Community | 543715 | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ContextLoaderListener problems in preconfigured OC4J 10.1.3.1

    Oracle Community | 10 years ago | 543715
    oracle.oc4j.admin.internal.DeployerException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!

    Root Cause Analysis

    1. oracle.oc4j.admin.internal.DeployerException

      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()
    2. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:167)
      2. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
      2 frames
    3. com.evermind.server
      HttpSite.addHttpApplication
      1. com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1130)
      2. com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738)
      3. com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
      4. com.evermind.server.Application.getHttpApplication(Application.java:571)
      5. com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
      6. com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909)
      7. com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606)
      7 frames
    4. oracle.oc4j.admin
      DeployerRunnable.run
      1. oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
      2. oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
      3. oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
      4. oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
      5. oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
      6. oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
      7. oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
      7 frames
    5. com.evermind.util
      ReleasableResourcePooledExecutor$MyWorker.run
      1. com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame