错误 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包冲突就可以解决好了。

相关文章推荐

jbpm 错误 loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFacto

加jbpm 后运行 jsp 报错:����: Servlet.service() for servlet jsp threw exceptionjava.lang.LinkageError: load...

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

加jbpm 后运行 jsp 报错:    Servlet.service() for servlet jsp threw exception java.lang.LinkageError...

jbpm 错误 loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFacto

加jbpm 后运行 jsp 报错: ����: Servlet.service() for servlet jsp threw exceptionjava.lang.LinkageError: loa...

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

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

关于tomcat启动web时classloader加载el实现类报错的解决方式

1.严重: Servlet.service() for servlet [jsp] in context with path [/web] threw exception [java.lang.Lin...

loader constraint violation错误

HTTP Status 500 - java.lang.LinkageError: loader constraint violation: when resolving method “org.ap...

java.lang.LinkageError: loader constraint violation

java.lang.LinkageError: loader constraint violation  是由于容器提供的包和web应用引入的包冲突引起的。  通过maven排除重复引用后解决。具...

java.lang.LinkageError: loader constraint violation解决

环境 JBoss 6.0 + MyEclipse 8.6 + MySQL 5.1 + Struts 2.3 + EJB 3.0   问题 启动JBoss出现如下异常:   [ClassLoaderMa...

新建JSP无法运行出现错误The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pat解决办法

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
  • UckyK
  • UckyK
  • 2014-10-13 23:33
  • 2201

处理javax.servlet.jsp.JspFactory.getJspApplicationContext错误

处理javax.servlet.jsp.JspFactory.getJspApplicationContext错误 主要跟项目lib目录下的javax.servlet.jar javax.servle...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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