jbpm4.0+tomcat6.0出现的异常:java.lang.LinkageError

来源:互联网 发布:ubuntu安装包放在哪里 编辑:程序博客网 时间:2024/06/04 19:25

问题在使用jbpm4.0以上的版本的web项目时,若将该项目部署在tomcat5.0的版本上,不会出现什么问题,可是当一部署到tomcat6.0的版本下时,就会报错,异常会被描述成javax.servlet.ServletException:java.lang.LinkageError:loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressiongFactory;"the class loader(instance of org/apache/jasper/servlet,JashperLoader)of the current class,org/apache/jsp/Oduty/wfmanage_jsp,and the class loader(instance of org/apache/catalina/loader/StandardClassLoader)for resolved class),javax/servlet/jsp/JspApplicationContentx,hanve different Class objects for the type javax/ex/expressionFactory used in the signature。

解决问题的办法:删除tomcat6.0中包含的el.jar 包,然后将项目当中的跟juel有关的3个jar包放到tomcat下面。

方法2就是除掉项目当中的那3个juel的jar包,不需要修改tomcat

原因:根据异常的描述,我们可以明显的知道这一错误的产生源于包的冲突。用winrar压缩文件管理器打开juel.jar包和tomcat下的el.jar包,可以发现二者很是类似,所以当这两者同时存在的话就会出现版本的冲突。解决办法就是除掉其中一方。

原创粉丝点击