jbpm4.3与SSH整合的问题
tyvincent
2010-12-11
jbpm4.3与SSH整合出现如下问题: 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in URL [file:/D:/Tomcat%206.0/webapps/mytest/WEB-INF/classes/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; Caused by: 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; Caused by: java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; ........... ........... 2010-12-11 18:11:06 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2010-12-11 18:11:06 org.apache.catalina.core.StandardContext start 严重: Context [/mytest] startup failed due to previous errors
applicationContext.xml文件相关配置如下: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.mysql.jdbc.Driver"></property> <property name="url" value="jdbc:mysql://localhost:3306/jbpm"></property> <property name="username" value="****"></property> <property name="password" value="****"></property> <property name="maxActive" value="100"></property> <property name="maxIdle" value="20"></property> <property name="maxWait" value="500"></property> <property name="defaultAutoCommit" value="true"></property> </bean> <!--jbpm4.3工作流 --> <bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper"> <property name="jbpmCfg" value="spring-jbpm4.cfg.xml" /> </bean> <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" /> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"></property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> </props> </property> <property name="mappingLocations"> <list> <value>classpath:jbpm.execution.hbm.xml</value> <value>classpath:jbpm.history.hbm.xml</value> <value>classpath:jbpm.identity.hbm.xml</value> <value>classpath:jbpm.repository.hbm.xml</value> <value>classpath:jbpm.task.hbm.xml</value> </list> </property> </bean>
大家帮忙看看问题出在那了,整了一天了。 |
|
limitmx
2010-12-15
可能是xerces的包不对,尝试换个xerces的实现包看看。可能是被tomcat里面的xerces包冲掉了。
|
|
tyvincent
2010-12-15
好是不是哦,我换了xerces包试了,结果还是一样的。 <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine"/> 注释掉,就不报错了。 关键还是无法创建“processEngine”。 |
|
tyvincent
2010-12-16
没人知道原因吗!!!
![]() |
|
yangkai0332
2010-12-20
兄弟;我跟你一模一样的错误;我已经纠结了4天了;求解啊......B顶!!!!!!
|
|
yangkai0332
2010-12-21
原来是SSH的jar包冲突问题.....唉.......我给你贴我的所有的jar包图;你看看咯!
![]() |
|
yangkai0332
2010-12-21
[img]
D:\我的文档\桌面\sshj.jpg [/img] |
|
yangkai0332
2010-12-21
....悲剧....不会贴图!
|
|
tyvincent
2010-12-21
yangkai0332 写道
原来是SSH的jar包冲突问题.....唉.......我给你贴我的所有的jar包图;你看看咯!
![]()
jar包冲突问题!能确定吗? |
|
eminemning
2010-12-22
请使用JBPM4,详情请见: http://eminemning.iteye.com/blog/813368
|