jbpm集成spring no org.jbpm.pvm.internal.tx.SpringTransaction in current environmen

1.使用AbstractTransactionalSpringJbpmTestCase做测试时出错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 org.jbpm.api.JbpmException: no org.jbpm.pvm.internal.tx.SpringTransaction in current environment

解决办法: 在jbpm.cfg.xml的里加上一行

<transaction type="spring" />

你可能感兴趣的:(spring,jbpm)