---
title: "no org.jbpm.pvm.internal.tx.SpringTransaction in current environment"
author: "zpfadmin"
date: "2011-05-12T15:52:03Z"
tags: []
categories: ["编程语言"]
slug: "no-org-jbpm-pvm-internal-tx-springtransaction-in-current-environment"
draft: false
lastmod: "2011-05-12T15:52:03Z"
id: 1041431
url: "https://zpfadmin.iteye.com/blog/1041431"
---

JBPM4集成SSH时，错误提示为：

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的&lt;transaction-context&gt;里加上一行  
&lt;transaction type="spring" /&gt;