- This topic has 3 replies, 2 voices, and was last updated 18 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
udaikumarMemberHi,
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” %>
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core” %>
—-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.
Riyad KallaMemberUdai,
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.
udaikumarMemberRiyad,
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” %>
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core” %>
——
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.
Riyad KallaMemberYour URI is wrong for JSTL 1.1, it should be:
http://java.sun.com/jsp/jstl/fmt
http://java.sun.com/jsp/jstl/corerespectively
-
AuthorPosts