I can't figure out why my root application context is loaded twice?
This occurs even with an empty applicationContext.xml.
If I define singleton beans, they are loaded twice.
Here is the output from tomcat:
NOTICE:Code:Oct 20, 2008 3:07:03 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ConsumerClient' did not find a matching property. Oct 20, 2008 3:07:03 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\usr\java\eclipse\jre\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/usr/java/eclipse/jre/bin/../jre/bin/client;C:/usr/java/eclipse/jre/bin/../jre/bin;C:\usr\java\jdk1.6.0_07\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\OpenAFS\Client\Program;C:\Program Files\OpenAFS\Common;C:\usr\cygwin\bin;C:\usr\java\apache-ant-1.7.0\bin;C:\usr\java\axis-1.4\bin;C:\usr\java\apache-maven-2.0.9\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\;C:\usr\java\jwsdp-2.0\jwsdp-shared\bin;C:\Program Files\CVSNT\ Oct 20, 2008 3:07:03 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8082 Oct 20, 2008 3:07:04 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8445 Oct 20, 2008 3:07:04 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 702 ms Oct 20, 2008 3:07:04 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 20, 2008 3:07:04 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Oct 20, 2008 3:07:04 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. Oct 20, 2008 3:07:05 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. Oct 20, 2008 3:07:05 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8082 Oct 20, 2008 3:07:05 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8445 Oct 20, 2008 3:07:05 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8010 Oct 20, 2008 3:07:05 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/25 config=null Oct 20, 2008 3:07:05 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1815 ms
Code:INFO: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. Oct 20, 2008 3:07:05 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly.


Reply With Quote
