tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6090] - Listener not instantiated in tld file
Date Wed, 13 Feb 2002 13:04:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6090>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6090

Listener not instantiated in tld file





------- Additional Comments From kevinj@develop.com  2002-02-13 13:04 -------
I've just tried this on 4.0.2 and I still get the error. My listener is this

public class SomeListener implements ServletContextListener{
    public void contextInitialized(ServletContextEvent servletContextEvent){
        System.out.println("*** cI::SomeListener");
    }
    
    public void contextDestroyed(ServletContextEvent servletContextEvent){
        System.out.println("*** cD::SomeListener");
    }
}

My tld is in WEB-INF and looks like this

<taglib>
  <tlib-version>1.0</tlib-version>
  <jsp-version>1.2</jsp-version>
  <short-name>Test Tags</short-name>  
  <listener>
    <listener-class>SomeListener</listener-class>
  </listener>
  <tag>
    <name>UserName</name>
    <tag-class>com.develop.ejsp.tags.UserName</tag-class>
    <body-content>empty</body-content>
  </tag>
</taglib>

(I've left the DOCTYPE out for simplicity)

My web.xml looks like this
<web-app>
</web-app>

If I put the listener entry into the web.xml it works fine.

I've tried this with test.tld and test.TLD

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message