Troubleshooting java.lang.AbstractMethodError in p

2019-09-08 06:28发布

问题:

I'm having this issue while developing portlets:

Caused by: javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;

I don't know anymore, what I can do.

My portlet set-up is as follows:

  • in web.xml: <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  • in my jsp: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

I also have some Maven dependencies in the POM file including portlet-api 2.0, jsp-api 2.1, servlet-api 2.5, jstl 1.2, el-api 2.2 and el-impl 2.2 ...

Anyone has an idea what to do?