tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Listener in tld files - bug ?
Date Mon, 08 May 2006 15:40:28 GMT
Listeners are allowed in TLD files.

-Tim

MiSt wrote:

> I added (by mistake) element
> <listener>
>         <listener-class>
>         org.springframework.web.context.ContextLoaderListener
>         </listener-class>
> </listener>
> 
> to  struts .tld file (after <taglib> ) despite web.xml and I noticed
> that  Spring context was loaded properly! Why? Elment <listener> is
> illegal in tld files. Tomcats notifies listeners defined in tld files
> and throws error for not existing classes:
> 
> 
> ERROR [[/service]] Error configuring application listener of class
> org.springframework.wsssaasdfeb.context.ContextLoaderListener
> java.lang.ClassNotFoundException:
> org.springframework.wsssaasdfeb.context.ContextLoaderListener
>     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332) 
> 
>     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181) 
> 
>     at org.apache.catalina.core.Standa
> (...)
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message