The .tld file itself should tell you the URL you need in the directive
to access the file.  The .tld file doesn't need to be in web-inf/lib.
These can be accessed from the jar, at least that was true with JSTL
1.1.  I would check the .tld, perhaps the uri element value changed.

Example:

.tld snippet:

<?xml version="1.0" encoding="UTF-8" ?>

<taglib xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd";
    version="2.0">
    
  <description>JSTL 1.1 core library</description>
  <display-name>JSTL core</display-name>
  <tlib-version>1.1</tlib-version>
  <short-name>c</short-name>
  <uri>http://java.sun.com/jsp/jstl/core</uri>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
ben short
Sent: Tuesday, January 09, 2007 12:45 PM
To: Tomcat Users List
Subject: Re: Tomcat and JSTL 1.2

Tim,

Thats what I thought, but I check and double checked and the
jstl-1.2.jar file is in the correct location. It also has the c.tld
inside it.

On 1/9/07, Tim Funk <[EMAIL PROTECTED]> wrote:
> Looks like you are missing the JSTL jar files whihc need to be in 
> WEB-INF/lib
>
> -Tim
>
> ben short wrote:
> > Hi all,
> >
> > Im trying to use jstl 1.2 with tomcat 5.5.20 and java 1.5.0_05-b05.
> >
> > My webapp deploys ok but when I browse to it I get the following
exception.
> >
> > xception
> >
> > org.apache.jasper.JasperException: Unable to read TLD
"META-INF/c.tld"
> > from JAR file
> >
"file:/opt/apache-tomcat-5.5.20/webapps/basket/WEB-INF/lib/jstl-1.2.jar"
:
> > org.apache.jasper.JasperException: Failed to load or instantiate 
> > TagLibraryValidator class:
org.apache.taglibs.standard.tlv.JstlCoreTLV
> >     
> > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspSe
> > rvletWrapper.java:512)
> >
> >     
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
> > r.java:377)
> >
> >     
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> > 314)
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to