Hi,
It's not the first time I see this log message, but this time I want to
diagnose it ;-)
I have simple spring-based webapp with one ContextLoaderListener
listener defined in web.xml, nothing fancy.
Unfortunately, after deploy, I can see message in the logfile:
INFO: The listener
"org.springframework.web.context.ContextLoaderListener" is already
configured for this context. The duplicate definition has been ignored.
It happens for several other webapps (not only spring-based).
Application works, listener code is being executed, but I can't find any
duplicate definition. It doesn't matter whether I deploy webapp for the
first time, or redeploy it later.
I'm 1000% sure that I have one listener definition in web.xml. My
spring.jar does not contain any listeners in its META-INF/*.tld defined
either.
Any ideas?
Anyway, here's my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/beans.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
</web-app>
--
Mikolaj Rydzewski <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]