java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
from using
<c:set var="testVar" value="testVal" />
All other JSTL tags work.
jsp 1.2
Java 1.4
Howver, the above works when I view this jsp in the global container. In other words the IT department made an entry in the server.xml file to register my web application. It is in my web application space that I get the above error. But it works fine if I view the jsp file when it is located outside this web app folder, I guess in some sort of default wep app for the server.
In my web application lib folder I have jstl.jar and standard.jar libraries that I was using with in Eclipse when developing locall. My Eclipse environment is set to mimic the java and jsp versions of our outdated production server.
You’re using a too new JSTL version for your servletcontainer. JSTL 1.0 which is designed for JSP 1.2 has the class
ELExceptionincluded in JSTL JAR file. JSTL 1.1 which is designed for JSP 2.0 doesn’t have it included anymore since that’s together with several EL specific classes moved to JSP 2.0 API (which is provided by the servletcontainer itself).When you run JSTL 1.1 on a JSP 1.2 container, it’ll complain that
ELExceptionis missing because it’s not available by JSP 1.2.So, to fix your problem, downgrade your JSTL version to 1.0. It’s available here.