- This topic has 3 replies, 2 voices, and was last updated 15 years, 3 months ago by support-joy.
-
AuthorPosts
-
karlwknightParticipantHi,
I am working on a web application that works fine when deployed on the internal tomcat in MyEclipse, but when I create the war file and try to run it on my own tomcat (apache-tomcat-6.0.18), I get the following error message in Firefox:
org.apache.jasper.JasperException: /index.jsp(1,1) 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
BTW, the offending jsp statement seems to be <%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %>
Can someone tell me what I am probably doing wrong? I apologize if this is an old topic, but I was not able to find the solution in the forum.
Thanks,
Karl
My system details:
*** Date:
Saturday, August 22, 2009 11:53:13 PM CDT** System properties:
OS=MacOSX
OS version=10.5.8
Java version=1.5.0_19*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.5
Build id: 7.5-20090609*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.5
Build id: 7.5-20090609
support-joyMemberkarlwknight,
You will get this error when you have missing “jstl-1.2.jar” file in “/WEB-INF/lib” folder. When you create a war file or deploy into Java EE 5 compliant server, notice the following jar files will not be included into “/WEB-INF/lib”, these are supposed to be provided by app server. If you observe your war file, you will notice that it is missing “Javaee5 Libraries” jar files. If these files are not provided by the said app-server, it is recommended that you add them explicitly to your war file.
My suggestion is to add the following jar files under “/WEB-INF/lib” file in your war file.
jsf-api.jar
jsf-impl.jar
jstl-1.2.jar files.
karlwknightParticipantJoy,
Thanks, that worked fine. Actually, I dropped the files into the tomcat lib directory, which works as well.
Karl
support-joyMemberKarl,
Good to hear that you are all set.
-
AuthorPosts