错误 loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicat

转载 2015年07月07日 11:43:35

Servlet.service() for servlet jsp threw exception
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 javax/el/ExpressionFactory used in the signature
 at org.apache.jsp.index_jsp._jspInit(index_jsp.java:23)
 at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
 at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:619)

这是网络上的说法:

jbpm4 在tomcat6 下面ssh2 这个错误!原因是项目中WEB-INF/lib中的三个jar包(juel.jar, juel-engine.jar, juel-impl.jar)和tomcat6下lib中jar包(el-api.jar)冲突解决方法:方法一:换成tomcat5.5 一点问题也没有了方法二:将juel.jar, juel-engine.jar, juel-impl.jar这三个包复制到tomcat6下lib中,并删除原来的el-api.jar,切记要把WEB-INF/lib中的juel.jar, juel-engine.jar, juel-impl.jar删除。不然还是要冲突。 

      可是这个方法在我这边并不适用,其实归根结底就是jar包中类的冲突,因为我是把maven项目中的jar包直接复制到web项目的,可是发现里面的javax.el-api.jar与JAVAEE6中的java.servlet.jsp.jar冲突了,所以才引发这个异常的出现。

如果大家也遇到这样的异常只要看看你的javax.el的jar包是否与你导入的jar包冲突就可以解决好了。

常见问题汇总 java.lang.LinkageError: loader constraint violation: when resolving interface method异常

1.linkage Error  java.lang.LinkageError: loader constraint violation: when resolving interface meth...

20160421HTTP Status 500 - java.lang.LinkageError loader constraint violation when resolving method o

HTTP Status 500 - java.lang.LinkageError loader constraint violation when resolving method org.apach...

【转】java.lang.LinkageError: loader constraint violation: when resolving interface method异常

严重: Servlet.service() for servlet jsp threw exception java.lang.LinkageError: loader constraint vio...

异常:java.lang.LinkageError: loader constraint violation: when resolving interface method

异常:java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servl...

java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.

严重: Servlet.service() for servlet jsp threw exception java.lang.LinkageError: loader constraint vio...

java.lang.ClassCastException: cn.study.model.User_$$_javassist_0 cannot be cast to javassist.util.pr

public static void main(String[] args) { // TODO Auto-generated method stub //addEmployee(); /...

搭建集群必备:windows如何使用Xshell远程连接(SSH)Linux

【原文:】 首先介绍一下环境:(主机)操作系统:win7 虚拟机:vmware workstation 10 虚拟机安装操作系统:Linux(ubuntu) 远程连接工具:xshell ...

loader constraint violation错误

HTTP Status 500 - java.lang.LinkageError: loader constraint violation: when resolving method “org.ap...
  • ouyida3
  • ouyida3
  • 2015年06月18日 17:12
  • 5841

java.lang.LinkageError: loader constraint violation

java.lang.LinkageError: loader constraint violation  是由于容器提供的包和web应用引入的包冲突引起的。  通过maven排除重复引用后解决。具...
  • MoreeVan
  • MoreeVan
  • 2012年03月08日 13:19
  • 16026

java.lang.LinkageError: loader constraint violation解决

环境 JBoss 6.0 + MyEclipse 8.6 + MySQL 5.1 + Struts 2.3 + EJB 3.0   问题 启动JBoss出现如下异常:   [ClassLoaderMa...
  • Wentasy
  • Wentasy
  • 2013年01月07日 09:25
  • 11669
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:错误 loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicat
举报原因:
原因补充:

(最多只允许输入30个字)