Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Tomcat and JSTL 1.2

benshort

2007-01-09

Replies:

Ok I think I know what is going on.

I use maven as my build system, and it downloaded the jstl-1.2.jar for
me. On looking inside the jar its directory structure seemed a bit
odd.

/META-INF
/classes/org/...
       /javax/...

I edited the file and moved the org and javax directories to the root
of the jar and it all sprung into life.

How odd.

Thanks for your help.

Ben

On 1/9/07, Derrick Koes <Derrick_Koes@(protected):
>
> 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>
>
> <%@(protected)" %>
>
>
>
> -----Original Message-----
> From: jamin.short@(protected)
> 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@(protected):
> > 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@(protected),
> > e-mail: users-unsubscribe@(protected)
> > For additional commands, e-mail: users-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected),
> e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.