The absolute uri: http://java.sun.com/jsp/jstl/functions cannot be resolved

Hi guys,

I really badly need help here. I have put

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

and got the following error message :

The absolute uri: http://java.sun.com/jsp/jstl/functions cannot be resolved in either web.xml or the jar files deployed with this application

I am using JBoss4 and I have included jsp-api.jar, standard.jar, and jstl.jar in my WEB-INF/lib folder. Please help !

Thanks & Regards,

Mark

[501 byte] By [kmthiena] at [2007-11-27 3:25:32]
# 1

in web.xml

u add this statement and restart ur server and check

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>

<taglib-location>http://java.sun.com/jsp/jstl/functions</taglib-location>

</taglib>

i hope it will help u..

drvijayy2k2a at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi,I still get the same stupid error message:org.apache.jasper.JasperException: /index.jsp(1,1) File " http://java.sun.com/jsp/jstl/functions" not foundPlease help, Thanks!
kmthiena at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

jsp-api should NOT be in your WEB-INF/lib directory

It should already be in the [TOMCAT]/common/lib directory

What version of JSTL have you got?

The functions are only available with JSTL1.1

You can check the version by opening standard.jar with a zip tool, and looking at Manifest.mf

evnafetsa at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

this is my MANIFEST.MF :

Manifest-Version: 1.0

Ant-Version: Apache Ant 1.6.1

Created-By: 1.4.2-34 ("Apple Computer, Inc.")

Specification-Title: JavaServer Pages Standard Tag Library (JSTL)

Specification-Version: 1.0

Implementation-Title: jakarta-taglibs 'standard': an implementation of

JSTL

Implementation-Version: 1.0.6

Implementation-Vendor: Apache Software Foundation

Implementation-Vendor-Id: org.apache

Extension-Name: org.apache.taglibs.standard

I am using jboss4 and i put jsp-api not under my WEB-INF, but /jboss4/server/default/lib

Please help ! thanks !

kmthiena at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Specification-Title: JavaServer Pages Standard Tag Library (JSTL)

Specification-Version: 1.0

Well, that is JSTL1.0

That explains why it can't find the functions taglib - because it wasn't available with JSTL1.1

I believe that JBoss4 uses at least Tomcat 5 under the hood

Jboss4.0.0 uses Tomcat5

JBoss4.0.5 uses Tomcat5.5

Are you writing for a JSP2.0 environment?

If so, you should upgrade to JSTL1.1

If not, you have to suck it in, and find another way to accomplish the task.

evnafetsa at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Hi evnafets,How do I know if I am writing in JSP 2.0 or 1.0 ? i am using JBoss4.0.5? pls help !Thanks & regards,Mark
kmthiena at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7

JBoss4.0.5 has Tomcat5.5 under the hood.

Tomcat5.5 supports the Servlet2.4/JSP2.0 spec.

If your web.xml file declares itself as version 2.4, then you are using JSP2.0

I would suggest you get JSTL1.1 from http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

Also take a read through [url http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0] this thread[/url]

evnafetsa at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
yeah bro .... got it works ! thanks a lot bro !
kmthiena at 2007-7-12 8:28:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...