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

谁说我不能喝 提交于 2019-12-20 04:12:56

问题


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>

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; at javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:620) .....................

here is my WEB-INF/lib

and my catalina/common/lib


回答1:


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



来源:https://stackoverflow.com/questions/4253954/java-lang-nosuchmethoderrorjavax-servlet-jsp-pagecontext-getelcontextljavax-e

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!