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

问题描述

我正在尝试设置一个我将在自定义JSP标记中引用的变量,所以我在JSP中有类似的东西:

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"/>

然而,当JSP运行时我收到此错误:

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)

我正在运行Tomcat 5.5和Java 1.5,使用JSTL 1.2。

I am running Tomcat 5.5, and Java 1.5, with JSTL 1.2.

我在这里做错了吗?

谢谢!

推荐答案

看起来你可能有一些版本问题,可能是冲突的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.

这篇关于java.lang.AbstractMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax / el / ELContext;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 01:29