java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException [英] java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

查看:26
本文介绍了java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

来自使用

所有其他 JSTL 标记都有效.

All other JSTL tags work.

jsp 1.2
Java 1.4

jsp 1.2
Java 1.4

但是,当我在全局容器中查看这个jsp时,上面的方法是有效的.换句话说,IT 部门在 server.xml 文件中创建了一个条目来注册我的 Web 应用程序.正是在我的 Web 应用程序空间中,我收到了上述错误.但是,如果我在 jsp 文件位于此 web 应用程序文件夹之外时查看它,它就可以正常工作,我猜是在服务器的某种默认 wep 应用程序中.

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.

在我的 web 应用程序 lib 文件夹中,我有 jstl.jar 和 standard.jar 库,我在 Eclipse 中开发本地时使用这些库.我的 Eclipse 环境设置为模仿我们过时的生产服务器的 java 和 jsp 版本.

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.

推荐答案

您为 servlet 容器使用了太新的 JSTL 版本.为 JSP 1.2 设计的 JSTL 1.0 在 JSTL JAR 文件中包含了 ELException 类.为 JSP 2.0 设计的 JSTL 1.1 不再包含它,因为它与移至 JSP 2.0 API(由 servletcontainer 本身提供)的几个特定于 EL 的类一起包含在内.

You're using a too new JSTL version for your servletcontainer. JSTL 1.0 which is designed for JSP 1.2 has the class ELException included 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).

当您在 JSP 1.2 容器上运行 JSTL 1.1 时,它会抱怨 ELException 丢失,因为它在 JSP 1.2 中不可用.

When you run JSTL 1.1 on a JSP 1.2 container, it'll complain that ELException is missing because it's not available by JSP 1.2.

因此,要解决您的问题,请将您的 JSTL 版本降级到 1.0.它在这里可用.

So, to fix your problem, downgrade your JSTL version to 1.0. It's available here.

这篇关于java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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