ELException on Tomcat 5.5 and JSTL 1.2

半腔热情 提交于 2019-12-22 17:06:58

问题


Setup:

  • Apache Tomcat 5.5
  • Servlet/JSP: 2.4/2.0 according to http://tomcat.apache.org/whichversion.html
  • JSTL in .WAR: 1.2

But I still get a java.lang.NoClassDefFoundError: javax/el/ELException

From what I have understood by reading question here at SO is that the ELException class has been moved and the container should include it. Previously in JSTL 1.1 it was provided in the JSTL .jar. Since the container is JSP 2.0 I am confused about this.


回答1:


From what I have understood by reading question here at SO is that the ELException class has been moved and the container should include it. Previously in JSTL 1.1 it was provided in the JSTL .jar. Since the container is JSP 2.0 I am confused about this.

You need to do either of following

Upgrade the Tomcat container to latest

or

downgrade the JSTL library to 1.0/1.1 which can be available here from Apache Tag lib implementation : http://tomcat.apache.org/taglibs/standard/

Edit: excerpt from Apache library download for Compatibility to JSTL version to Tomcat Version

as you can see , you are using the JSP 2.0 and JSTL 1.2 which in-compatible. Hence some classes might be upgraded or downgraded



来源:https://stackoverflow.com/questions/16010123/elexception-on-tomcat-5-5-and-jstl-1-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!