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 Fanguang Meng <me...@usgs.gov> on 2004/08/02 20:48:46 UTC

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

I have a project working well on PC JWSDP1.3, when I copied everything to
UNIX, I got the following problem.
org.apache.jasper.JasperException: This absolute uri(
http://java.sun.com/jstl/core)
cannot be resolved in either web.xml or the jar files deployed with this
application

I checked web.xml
  <taglib>
     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
     <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>
is there.

c.tld is under WEB-INF
standard.jar and jstl.jar are under /WEB-INF/lib

Tomcat version is 4.2.24 and JSTL version is 1.0.

I also checked the c.tld in standard.jar file, it seems consistent.

Everything looks just fine, I just don't know why.

The problem happened because I have a line in a .jsp file
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"
%>
If I get rid of this line, it works but the <c:>tags.

I searched through google.com and found lots of similar problems, but
there solutions did not work for me.

Is there anybody can help?

Thanks.

Fanguang Meng
SAIC, EROS Data Center
Sioux Falls, SD 57198
meng@usgs.gov
(605)594-6880
(605)594-6940 Fax




---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


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

Posted by Justyna Horwat <Ju...@Sun.COM>.
Tomcat 4.x does not have a 4.2.24 release. Perhaps you meant 4.1.24? 
Anyways the latest 4.x release is 4.1.30.

With Tomcat 4.x you don't need to manually specify the tld's in your 
deployment descriptor if they are bundled in an included jar file. They 
should be loaded automatically from the standard.jar file where they are 
included in the META-INF directory. This jar file should be placed in 
your web application's WEB-INF/lib directory.

Not sure why you are getting this error but I recommend letting the 
container parse the TLD's that are bundled in the standard.jar file and 
avoid specifying them manually. This way you have less to worry about 
and can avoid possible typos in your deployment descriptor and having to 
make sure your TLD's are in the right place.

Also, there is a JSTL examples war file in your JSTL bundle. I recommend 
deploying that war file in your container and trying out the examples 
and making sure they work.

Thanks,

Justyna

Fanguang Meng wrote:

> I have a project working well on PC JWSDP1.3, when I copied everything to
> UNIX, I got the following problem.
> org.apache.jasper.JasperException: This absolute uri(
> http://java.sun.com/jstl/core)
> cannot be resolved in either web.xml or the jar files deployed with this
> application
> 
> I checked web.xml
>   <taglib>
>      <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
>      <taglib-location>/WEB-INF/c.tld</taglib-location>
>   </taglib>
> is there.
> 
> c.tld is under WEB-INF
> standard.jar and jstl.jar are under /WEB-INF/lib
> 
> Tomcat version is 4.2.24 and JSTL version is 1.0.
> 
> I also checked the c.tld in standard.jar file, it seems consistent.
> 
> Everything looks just fine, I just don't know why.
> 
> The problem happened because I have a line in a .jsp file
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"
> %>
> If I get rid of this line, it works but the <c:>tags.
> 
> I searched through google.com and found lots of similar problems, but
> there solutions did not work for me.
> 
> Is there anybody can help?
> 
> Thanks.
> 
> Fanguang Meng
> SAIC, EROS Data Center
> Sioux Falls, SD 57198
> meng@usgs.gov
> (605)594-6880
> (605)594-6940 Fax
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org