I am using Tomcat 4.1.18.  I created a test.tld file in WEB-INF/tlds.
The corresponding class file is in WEB-INF/classes.

If I start tomcat and request a page that uses a custom tag, I get the
following trace:

     
org.apache.jasper.JasperException: This absolute uri
(http://www.mycompany.com/tags) cannot be resolved in either web.xml or
the jar files deployed with this application
        at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:105)
        at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:430)
        at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:154)

This error message implies that the .tld file needs to be in a jar file
or there needs to be an alias in the web.xml file.  I thought Tomcat
would search all sub dirs of WEB-INF for any *.tld file.  This doesn't
seem to be happening.  I also tried putting test.tld in the META-INF
dir.  This didn't help.  If I create a jar file with the class and the
tld file in the META-INF directory, I can successfully invoke the custom
tags.

Any thoughts?

Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to