facebook

Problem with taglib when running generated war file

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #301661 Reply

    karlwknight
    Participant

    Hi,

    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&#8221; %>

    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 Workbench

    Version: 7.5
    Build id: 7.5-20090609

    #301684 Reply

    support-joy
    Member

    karlwknight,

    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.

    #301712 Reply

    karlwknight
    Participant

    Joy,

    Thanks, that worked fine. Actually, I dropped the files into the tomcat lib directory, which works as well.

    Karl

    #301713 Reply

    support-joy
    Member

    Karl,

    Good to hear that you are all set.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Problem with taglib when running generated war file

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in