tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derrick Koes" <Derrick_K...@skillsoft.com>
Subject RE: Tomcat and JSTL 1.2
Date Tue, 09 Jan 2007 17:59:11 GMT

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: jamin.short@gmail.com [mailto:jamin.short@gmail.com] 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 <funkman@joedog.org> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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



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


Mime
View raw message