Jbpm运行在Tomcat6.0出现问题
Jbpm运行在Tomcat6.0出现问题
分类:问题记录2010-06-2015:02805人阅读评论(0)收藏举报
tomcatjbpmclassinterfacejspexception
基于JBPM4的web项目jsp页面发布出错,错误如下:
exception
javax.servlet.ServletException:java.lang.LinkageError:loaderconstraintviolation:whenresolvinginterfacemethod"javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;"theclassloader(instanceoforg/apache/jasper/servlet/JasperLoader)ofthecurrentclass,org/apache/jsp/OnDuty/wfmanage_jsp,andtheclassloader(instanceoforg/apache/catalina/loader/StandardClassLoader)forresolvedclass,javax/servlet/jsp/JspApplicationContext,havedifferentClassobjectsforthetypejavax/el/ExpressionFactoryusedinthesignature
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
rootcause
java.lang.LinkageError:loaderconstraintviolation:whenresolvinginterfacemethod"javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;"theclassloader(instanceoforg/apache/jasper/servlet/JasperLoader)ofthecurrentclass,org/apache/jsp/OnDuty/wfmanage_jsp,andtheclassloader(instanceoforg/apache/catalina/loader/StandardClassLoader)forresolvedclass,javax/servlet/jsp/JspApplicationContext,havedifferentClassobjectsforthetypejavax/el/ExpressionFactoryusedinthesignature
org.apache.jsp.OnDuty.wfmanage_jsp._jspInit(wfmanage_jsp.java:27)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
原因是项目中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删除。不然还是要冲突。