配置完后如果报错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
[color=red]因为xerces版本冲突。
只要删掉classpath下低版本的xerces,用jdk自带的就没问题了[/color]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
[color=red]因为xerces版本冲突。
只要删掉classpath下低版本的xerces,用jdk自带的就没问题了[/color]
本文介绍了解决JBPM进程引擎配置时出现的org.springframework.beans.factory.BeanCreationException错误的方法。该问题通常由xerces版本冲突引起,解决办法是删除低版本的xerces依赖,使用JDK自带的版本。
1533

被折叠的 条评论
为什么被折叠?



