您的位置:首页 > 编程语言 > Java开发

HTTP Status 500 - java.lang.LinkageError: loader constraint violation: when resolving interface meth

2020-02-02 01:56 2381 查看

maven 整合SSH模块时,在父工程里面执行tomcat7:run时,服务器端测试正常,但是页面响应时,出现如下问题:

HTTP Status 500 - 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/codehaus/plexus/classworlds/realm/ClassRealm) for the method's defining class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature

原因是SSH父工程的pom.xml配置文件配置出错,注意配置文件中依赖(dependency)是有顺序的,修改依赖的顺序就可以了。
  • 点赞
  • 收藏
  • 分享
  • 文章举报
火影忍者001 发布了2 篇原创文章 · 获赞 0 · 访问量 195 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐