Announcement Announcement Module
Collapse
No announcement yet.
Two Spring-based Applications in OC4J 10.1.3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Two Spring-based Applications in OC4J 10.1.3

    We have the problem when we deploy two spring-based application in oracle oc4j 10.1.3 the first application startup is successfull and in the initialization phase of the second one we got the following error:

    17:51:38,625 [OC4J Launcher] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
    org.springframework.context.ApplicationContextExce ption: Custom context class [org.springframework.web.context.support.XmlWebAppl icationContext] is not of type
    ConfigurableWebApplicationContext
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:238)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:190)
    at org.springframework.web.context.ContextLoaderServl et.init(ContextLoaderServlet.java:83)
    at com.pirobase.esb.context.ESBContextLoaderServlet.i nit(ESBContextLoaderServlet.java:36)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:256)
    at com.evermind.server.http.HttpApplication.loadServl et(HttpApplication.java:2231)
    at com.evermind.server.http.HttpApplication.findServl et(HttpApplication.java:4617)
    at com.evermind.server.http.HttpApplication.findServl et(HttpApplication.java:4541)
    at com.evermind.server.http.HttpApplication.initPrelo adServlets(HttpApplication.java:4730)
    at com.evermind.server.http.HttpApplication.initDynam ic(HttpApplication.java:1019)
    at com.evermind.server.http.HttpApplication.<init>(Ht tpApplication.java:649)
    at com.evermind.server.ApplicationStateRunning.getHtt pApplication(ApplicationStateRunning.java:428)
    at com.evermind.server.Application.getHttpApplication (Application.java:512)
    at com.evermind.server.http.HttpSite$HttpApplicationR unTimeReference.createHttpApplicationFromReference (HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationR unTimeReference.<init>(HttpSite.java:1894)
    at com.evermind.server.http.HttpSite.initApplications (HttpSite.java:633)
    at com.evermind.server.http.HttpSite.setConfig(HttpSi te.java:302)
    at com.evermind.server.http.HttpServer.setSites(HttpS erver.java:273)
    at com.evermind.server.http.HttpServer.setConfig(Http Server.java:180)
    at com.evermind.server.ApplicationServer.initializeHt tp(ApplicationServer.java:2296)
    at com.evermind.server.ApplicationServer.setConfig(Ap plicationServer.java:944)
    at com.evermind.server.ApplicationServerLauncher.run( ApplicationServerLauncher.java:113)
    at java.lang.Thread.run(Unknown Source)


    We are using Spring 1.2.8. Each application has the spring jar in its own lib dir (/WEB-INF/lib).

  • #2
    Sounds like a classloading issue to me. I do not know OC4J well. Maybe there are configuration options for classloader behavior.

    Regards,
    Andreas

    Comment

    Working...
    X