You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by e <li...@medusadigital.com> on 2003/08/22 20:10:00 UTC

problems with install

I've downloaded the standard taglibs from 
http://www.apache.org/dist/jakarta/taglibs/standard/
I am having issues with getting them to work.

I am using the following in my jsps:

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

If I don't declare the taglibs in my web.xml file, I get:

Fatal error: http://java.sun.com/jstl/core: Failed to find taglib for an 
absolue URI 'http://java.sun.com/jstl/core'.
Fatal error: /WEB-INF/tiles/content/menu.jsp (5): TagLib 
declaration  prefix='c', uri='http://java.sun.com/jstl/core' failed, 
reason: Failed to find taglib for URI.

If I do declare them as follows, I get errors...

	<taglib>
		<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
		<taglib-location>/WEB-INF/c.tld</taglib-location>
	</taglib>


	Warning: http://java.sun.com/jstl/core: Unknown element 'tlib-version' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'jsp-version' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'short-name' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'display-name' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'description' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'validator' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'tag-class' 
encountered while parsing the TLD.
	Warning: http://java.sun.com/jstl/core: Unknown element 'body-content' 
encountered while parsing the TLD.


Anybody have any ideas what I'm doing wrong?
I have J2EE 1.2.

Thanks.

-e







Re: problems with install

Posted by Felipe Leme <t5...@sneakemail.com>.
Hi,

That's because you are using a JSP 1.1 container (and JSTL requires JSP 1.2).


> If I don't declare the taglibs in my web.xml file, I get:
>
> Fatal error: http://java.sun.com/jstl/core: Failed to find taglib for an
> absolue URI 'http://java.sun.com/jstl/core'.

JSP 1.1 containers doesn't recognize automatically the TLDs in the jars.


> 	Warning: http://java.sun.com/jstl/core: Unknown element 'tlib-version'
> encountered while parsing the TLD.

The TLD DTD has changed from JSP 1.1 to JSP 1.2.

> Anybody have any ideas what I'm doing wrong?
> I have J2EE 1.2.

There you go. You probably need J2EE 1.3.

Felipe