(class: org/apache/jasper/runtime/PageContextImpl, method: getELResolver signature: ()Ljavax/el/ELResolver;) Incompatible argument to

网上大多都说是jsp版本原因:

  引用:

 .............................................. .............................................. .............................................. ........................................ 

如果用jsp2.1最好用jdk1.5及或以上版本,否则当打开jsp页面时会抛出异常:
FATAL: Exception initializing page context
java.lang.VerifyError: (class: org/apache/jasper/runtime/PageContextImpl, method: getELResolver signature: ()Ljavax/el/ELResolver;) Incompatible argument to function
 at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:157)

所以若不想见到这个异常最好直接选择jsp2.0的jar。
然而jsp2.0的jar比较多,会让程序显得很乱。

 .............................................. .............................................. .............................................. ..........................................

  最好是看看一看jetty支持的各个版本:(当然这个图比较旧了,现在ketty都到9了,可以去官网看看版本支持)

  

但是出现这个问题不是版本的原因,我lean了一下就好了,也不知道是怎么回事:

原文地址:https://www.cnblogs.com/nightswatch/p/4639729.html