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

 2023-02-25    313  

网上大多都说是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了,可以去官网看看版本支持)

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

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

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

 

以上所述是小编给大家介绍的(class: org/apache/jasper/runtime/PageContextImpl, method: getELResolver signature: ()Ljavax/el/ELResolver;) Incompatible argument to,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对77isp云服务器技术网的支持!

原文链接:https://77isp.com/post/34380.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。