Java.lang.NoClassDefFoundError: javax / servlet / jsp / el / ELException

java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

using

<c:set var="testVar" value="testVal" />

All other JSTL tags work.

jsp 1.2
java 1.4

Be that as it may, it works when I view this jsp in a global container. In other words, the IT department wrote in the server.xml file to register my web application. In my web application space, I get the above error. But it works fine if I view the jsp file when it is outside of this web application folder, I assume this is the default application for the wep application for the server.

In the folder of my lib web application, I have the jstl.jar and standard.jar libraries that I used in Eclipse when developing locall. My Eclipse environment is configured to mimic the java and jsp versions of our legacy production server.

+3
source share
2 answers

You are using a too new version of JSTL for your servlet container. JSTL 1.0, developed for JSP 1.2, has a class ELExceptionincluded in the JSTL JAR file. JSTL 1.1, which is intended for JSP 2.0, no longer includes it, because together with several separate classes, ELs are moved to the JSP 2.0 API (which is provided by the servlet container itself).

JSTL 1.1 JSP 1.2, , ELException , JSP 1.2.

, , JSTL 1.0. .

+4

Java 1.4 .

standard.jar jstl.jar, , URI . , JSTL JAR .

JDK. JDK 5 . , JDK 1.4.

0

Source: https://habr.com/ru/post/1775300/


All Articles