本文主要是介绍Dorado7无法打开JSP的问题 have different Class objects for the type avax/el/ExpressionFactory,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
解决办法:
删除lib中jar包:el-api.jar
问题根源:包冲突引起的,这个类javax/el/ExpressionFactory,在myeclipse的javaee.jar中有,在tomcat的el-api.jar中有,在jpbm的juel.jar中有。
报错如下:
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type avax/el/ExpressionFactory; used in the signature
这篇关于Dorado7无法打开JSP的问题 have different Class objects for the type avax/el/ExpressionFactory的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!