facebook

JSTL jars in Eclipse5.0M2 are old

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #256263 Reply

    udaikumar
    Member

    Hi,

    The jstl.jar and standard.jar files shipped with Eclipse 5.0 M2 seemed to be very old. As soon as I include the tablibs in my .jsp files I get the errors.
    —-
    <%@ taglib prefix=”fmt” uri=”http://java.sun.com/jstl/fmt&#8221; %>
    <%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core&#8221; %>
    —-

    After replacing with the latest jstl.jar and standard.jar files, it ran smoothly. If it is a real bug, this needs to be fixed.

    Thanks,
    Udai.

    #256407 Reply

    Riyad Kalla
    Member

    Udai,
    We ship both versions, 1.0 and 1.1. You are given the choice of which one you want to add when you add JSTL capabilities, you likely selected 1.0 on accident.

    #256622 Reply

    udaikumar
    Member

    Riyad,

    I verified this again. I found some thing strange on both 4.1 and 5.0M2 versions. The standard.jar is available in both folders (eclipse\plugins\…\data\libraryset\JSTL1.0\lib and eclipse\plugins\…\data\libraryset\JSTL1.1\lib). But the size of standard.jar in JSTL1.0 (504kb) is bigger than the one in JSTL1.1 (385kb).

    When I select JSTL1.1 capabilities, standard.jar (385kb) gets selected and copied to my WEB-INF\lib folder.

    With this jar file, if I inlcude the following two lines in my .jsp file
    ——
    <%@ taglib prefix=”fmt” uri=”http://java.sun.com/jstl/fmt&#8221; %>
    <%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core&#8221; %>
    ——
    when I access this .jsp file I get the following exception.
    ———-
    java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
    at java.lang.Class.getDeclaredMethods(Class.java:1139)
    at java.beans.Introspector$1.run(Introspector.java:1127)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1125)
    at java.beans.Introspector.getTargetMethodInfo(Introspector.java:990)
    at java.beans.Introspector.getBeanInfo(Introspector.java:371)
    at java.beans.Introspector.getBeanInfo(Introspector.java:208)
    at java.beans.Introspector.(Introspector.java:352)
    at java.beans.Introspector.getBeanInfo(Introspector.java:208)
    at java.beans.Introspector.getBeanInfo(Introspector.java:194)
    at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1331)
    at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1269)
    ….. blah … blah
    ———-

    When I replace with another standard.jar (504kb) this exception will go away.

    I think by accident you must have kept these jar file in wrong folder. Please correct me I am wrong.

    Thanks,
    Udai.

    #256641 Reply

    Riyad Kalla
    Member

    Your URI is wrong for JSTL 1.1, it should be:
    http://java.sun.com/jsp/jstl/fmt
    http://java.sun.com/jsp/jstl/core

    respectively

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSTL jars in Eclipse5.0M2 are old

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