Mark Scott wrote:
> 
> Hi All,
> having some trouble deploying my custom Tag, this is the error...
> thanks in advance
> Parsing of JSP File '/test/tagpage.jsp' failed:
> /test/tagpage.jsp(1): Could not parse deployment descriptor:
> java.io.IOException: cannot resolve 'taglib' into a valid tag library
> probably occurred due to an error in /test/tagpage.jsp line 1:
> <%@ taglib uri="taglib" prefix="input" %>

The value of the uri attribute must be either a symbolic name that's
mapped to the real location of the TLD (or JAR file containing the TLD)
in the web.xml file, or the path for the TLD (or JAR file with TLD).

You're using the first approach but it seems like WL is not spec compliant 
and doesn't do the translation from your symbolic name ("taglib") to the 
location correctly. Try specifying the context-relative path as the uri 
value instead, i.e.

  uri="/WEB-INF/taglib.tld"

I also suggest you report this to BEA, so they can fix their container.

Hans

>  ------------------------------
> my directories look like this
> 
> myserver
>         test
>             - tagpage.jsp
> 
> WEB-INF
> -web.xml
> -taglib.tld
> -------------------------------
> my code:
> 
> in jsp
> 
>         -<%@ taglib uri="taglib" prefix="input" %>
> 
> in web.xml
> 
>         -<?xml version="1.0" ?>
>         <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
>         <taglib>
>                 <taglib-uri>taglib</taglib-uri>
>                 <taglib-location>/WEB-INF/taglib.tld</taglib-location>
>         </taglib>
> </web-app>

-- 
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

Reply via email to