java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
我正在尝试设置一个将在自定义 JSP 标记中引用的变量,因此我的 JSP 中有类似的内容:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="test"/>
但是,当 JSP 运行时我收到此错误:
java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:140)
我正在运行 Tomcat 5.5 和 Java 1.5,与 JSTL 1.2。
我在这里做错了什么吗?
谢谢!
I am trying to set a variable that I will refer to in a custom JSP tag, so I have something like this in my JSP:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="test"/>
However, I am getting this error when The JSP runs:
java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:140)
I am running Tomcat 5.5, and Java 1.5, with JSTL 1.2.
Am I doing something wrong here?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这似乎出现了不少。 我们将 Hadoop 作为依赖项,并且必须进行多次排除。 其中一些可能是多余的,但这最终奏效了。 我应该指出,直到我开始将贾斯珀排除在底部之前,情况没有任何变化。
This seems to come up quite a bit. We had Hadoop as a dependency and had to do multiple exclusions. Some of these are probably redundant, but this finally worked. I should note that there was no change until I started excluding Jasper at the bottom.
看起来您可能遇到一些版本控制问题,可能是某种冲突的 jar 文件。 看看这里,也许会有帮助。 如果您无法解决问题,则需要提供有关运行时环境的更多信息。
Looks like you may have some versioning problem, maybe a conflicting jar file of some sort. Look here, maybe it'll help. You need to supply some more info about your runtime environment if you can't solve it.
Tomcat 5.5 不支持 JSTL 1.2 使用的 Servlet API 2.5。
升级到Tomcat 6.0或降级Servlet/JSP/JSTL版本。
请参阅 http://tomcat.apache.org/whichversion.html
Tomcat 5.5 does not support Servlet API 2.5 which is used by JSTL 1.2.
Upgrade to Tomcat 6.0 or downgrade the Servlet / JSP / JSTL versions.
see http://tomcat.apache.org/whichversion.html