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 Fri, 01 Feb 2002 15:13:23 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

kevinj@develop.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From kevinj@develop.com  2002-02-01 15:13 -------
Thanks Craig,

I've created the simplest app I can

I now have this

webapps\test\web-inf\test.tld

test.tld looks like this
(the DOCTYPE)
<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>

</taglib>



My listener has a System.out.println in contextInitialised. If I install the 
listener in the web.xml file I see the println. But if I remove the entry from 
web.xml and do the above it fails.

Am I missing a step, the spec implies to me (but you know how good I am at 
reading specs :-) ) that simply dropping the tld into the web-inf directory 
would work. 

My web.xml is empty i.e. 

<web-app>
</web-app>

As I said, if I put the <listener> entry here the listener loads (so I know the 
listener is OK).

Am I missing a simple step somewhere?

--
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