Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JasperException: absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved [duplicate]

Tags:

jsp

jstl

I've been having the following problem with my GoDaddy's server. I am using JSPs with the JSTL Library. My /WEB-INF/lib folder contains the following libraries:

jstl.jar standard.jar

My JSP looks something like this:

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

<p>Hello!   <%
out.print(System.getProperty("java.class.path")); 

%></p>

But I keep getting the following exception:

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

Any ideas as to why it is doing that?

like image 356
Alberto_Saavedra Avatar asked Mar 11 '10 18:03

Alberto_Saavedra


3 Answers

You need to get the right version of JSTL, they use different URIs.

If that one's not working, try: http://download.java.net/maven/1/jstl/jars/jstl-1.2.jar (JSTL 1.2), or pull down the 1.1 JSTL jars.

There's a more detailed list of versions/URIs at coderanch.

like image 158
brabster Avatar answered Nov 14 '22 09:11

brabster


you need to add Following jar file in your web application

jakarta-jstl-1.1.2.jar
and jakarta-standard-1.1.2.jar files

Recently I have same problem, that i have resolved by adding above two jar files

like image 4
Sheo Avatar answered Nov 14 '22 09:11

Sheo


I used Tomcat6 37. As for me, I tried mentioned above solutions but still got the error. The problem solved after adding the jstl-1.2.jar to my %CATALINA_HOME%\lib directory.

like image 3
Alexander Davliatov Avatar answered Nov 14 '22 10:11

Alexander Davliatov