Results 1 to 6 of 6

Thread: Spring SI and Apache Geronimo

  1. #1
    Join Date
    Sep 2008
    Location
    Chiva - Valencia - Spain
    Posts
    33

    Default 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,843

    Default

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

  3. #3
    Join Date
    Sep 2008
    Location
    Chiva - Valencia - Spain
    Posts
    33

    Default

    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

  4. #4
    Join Date
    May 2007
    Location
    Netherlands
    Posts
    614

    Default

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

  5. #5
    Join Date
    Sep 2008
    Location
    Chiva - Valencia - Spain
    Posts
    33

    Default

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

    And yes, the app works in Tomcat 6

  6. #6
    Join Date
    Aug 2007
    Posts
    15

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •