You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/02/01 16:13:23 UTC

DO NOT REPLY [Bug 6090] - Listener not instantiated in tld file

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>