tomcat 6 says "listeners.ContextListener" is already configured for this context

Tomcat 6.0 才启动时,总是会报下面的错误,但是不影响开发。

 

信息: Starting Servlet Engine: Apache Tomcat/6.0.16 2011-5-18 23:28:18 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored. 2011-5-18 23:28:18 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored. 2011-5-18 23:28:19 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 2011-5-18 23:28:19 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 2011-5-18 23:28:19 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "org.springframework.web.util.Log4jConfigListener" is already configured for this context. The duplicate definition has been ignored. 2011-5-18 23:28:19 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored. 2011-5-18 23:28:20 org.apache.catalina.core.ApplicationContext log 信息: Set web app root system property: 'hhyz_oa.root' = [F:/Tomcat/Tomcat 6.0/webapps/hhyz_oa/] 2011-5-18 23:28:20 org.apache.catalina.core.ApplicationContext log 信息: Initializing log4j from [F:/Tomcat/Tomcat 6.0/webapps/hhyz_oa/WEB-INF/log4j.properties] log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory). log4j:WARN Please initialize the log4j system properly. 2011-5-18 23:28:20 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext 2011-5-18 23:28:30 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored. 2011-5-18 23:28:30 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "org.springframework.web.util.IntrospectorCleanupListener" is already configured for this context. The duplicate definition has been ignored. 

Google了半天,发现好像是Tomcat 6.0 的一个bug。原话是:

 

it seems to be a problem of the revision 6.0.16. As it is written in this page, this extra log lines will not affect the application, despite a little log annoyance.

This link is the tracking issue for this bug which will be fixed in a next release.

https://issues.apache.org/bugzilla/show_bug.cgi?id=44423

你可能感兴趣的:(spring,tomcat,log4j,servlet,application,System)