java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex [英] java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex

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

问题描述

我有此代码无法正常工作.

i have this code which is not working.

<jsp:useBean id="abbreviationlist" class="AbbreviationListType"/>
<jsp:setProperty name="abbreviationlist" property="id"/>
            <table>
                <c:forEach items="${abbreviationlist.list}" var="abbreviation">
                </c:forEach>
            </table>

,我有带有设置和获取列表方法的类AbbreviationListType- 得到奇异的是=

and i have the class AbbreviationListType with set and get methods for the list- get singnature is =

public List<AbbreviationType> getList()

有人可以指出我做错了什么吗? 导致这不起作用,我得到了这个堆栈跟踪:

can someone please point out what i am doing wrong ? cause this doesnt work and i get this stack trace:

javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex; 在javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:620) .....................

javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex; at javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:620) .....................

这是我的WEB-INF/lib

here is my WEB-INF/lib

和我的catalina/common/lib

and my catalina/common/lib

推荐答案

您输入的内容有误.从您的lib文件夹中删除所有el-apijsp-apijstl* jar.它们随您的servlet容器一起提供

You have the wrong version of something. Remove all el-api, jsp-api and the jstl* jars from your lib folder. They are shipped with your servlet container

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

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