1. 程式人生 > >SSH2+JBPM4.4 整合常見錯誤

SSH2+JBPM4.4 整合常見錯誤

 

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

嚴重: 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:24)
 at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
 at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:164)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:338)
 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:859)
 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刪除不然還是要衝突。