Announcement Announcement Module
Collapse
No announcement yet.
Spring SI and Apache Geronimo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring SI and Apache Geronimo

    Hi all,

    I'm trying to deploy my SI app in apache geronimo framework and I'm getting this error:

    Code:
    ContainerBase.addChild: start: LifecycleException:  java.io.IOException: Context did not start for an unknown reason
    I've noticed that the error occurs when the org.springframework.web.context.ContextLoaderListe ner is trying to start.

    Does anyone tried to deploy this kind of architecture in geronimo?
    The SI app connects to AMQ server and reads files from the file system.

    Sorry if the thread is not in the correct forum, but my app is SI based.

    Thanks,

    Nestor

  • #2
    Can you provide a config excerpt - maybe just the listener and contextConfigLocation param from web.xml?

    Comment


    • #3
      Yes

      Code:
      <context-param>
      		<param-name>contextConfigLocation</param-name>
      		<param-value>/WEB-INF/integrationApplicationContext.xml /WEB-INF/serviceApplicationContext.xml /WEB-INF/infrastructureApplicationContext.xml</param-value>
      	</context-param>
      
      	<context-param>
      		<param-name>log4jConfigLocation</param-name>
      		<param-value>/WEB-INF/log4j.config</param-value>
      	</context-param>
      
      	<listener>
      		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      	</listener>
      	 
      	<listener>
      		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
      	</listener>
      if I remove the ContextLoaderListener the app deploys as expected, so the Log4jConfigListener works fine.

      Thanks,

      NEStor

      Comment


      • #4
        With helpful error messages like this who needs support . Does the app work in tomcat?

        Comment


        • #5
          Yes Iwein You are right, geronimo doesnt show me more info ...

          And yes, the app works in Tomcat 6

          Comment


          • #6
            Listener order could be the problem

            From the Spring Log4jConfigListener documentation:

            This listener should be registered before ContextLoaderListener in web.xml, when using custom Log4J initialization.

            This works in Geronimo, but it takes over Geronimo's logging. Look here:

            http://cwiki.apache.org/GMOxDOC21/co...ith-log4j.html

            Comment

            Working...
            X