Tomcat 5.5和JSTL 1.2上的ELException [英] ELException on Tomcat 5.5 and JSTL 1.2

查看:70
本文介绍了Tomcat 5.5和JSTL 1.2上的ELException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

但是我仍然得到一个 java.lang.NoClassDefFoundError: javax/el/ELException

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

据我在SO处的阅读问题所理解的是,ELException类已被移动,并且容器应包括该类.以前在JSTL 1.1中,它是在JSTL .jar中提供的.由于容器是JSP 2.0,对此我感到困惑.

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.

推荐答案

据我在此处阅读问题所了解的是 ELException类已移动,并且容器应包括它. 以前在JSTL 1.1中,它是在JSTL .jar中提供的.自从 容器是JSP 2.0,对此我感到困惑.

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

将Tomcat容器升级到最新版本

Upgrade the Tomcat container to latest

将JSTL库降级到1.0/1.1,可以从Apache Tag lib实现中获得: http ://tomcat.apache.org/taglibs/standard/

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/

摘自Apache库下载,以实现与JSTL版本到Tomcat版本的兼容性

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

您正在使用不兼容的JSP 2.0和JSTL 1.2.因此,某些类可能会升级或降级

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

这篇关于Tomcat 5.5和JSTL 1.2上的ELException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆