MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          jbpm4

          Posted on 2010-05-17 18:02 leekiang 閱讀(974) 評(píng)論(0)  編輯  收藏 所屬分類: 工作流(JBPM)
          1.使用AbstractTransactionalSpringJbpmTestCase做測(cè)試時(shí)出錯(cuò)
          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-context>里加上一行
          <transaction type="spring" />

          2.
          ?如果使用了
          <bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper" />
          <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
          就不需要通過Configuration構(gòu)造了,可以通過spring里的依賴注入獲得processEngine
          包括什么repositoryService,taskService都不要進(jìn)行bean配置了













          https://jira.jboss.org/browse/JBPM-2710
          http://jbpm.group.javaeye.com/group/topic/18352
          http://ronghao.javaeye.com/blog/412956
          http://xiaokaiye.javaeye.com/blog/413136
          http://jbpm.group.javaeye.com/group/blog/375061
          http://www.slideshare.net/ainze/spring-integration-with-jbpm4#
          http://www.aygfsteel.com/vanlin/archive/2009/10/12/297903.html
          http://n.tomek.bujok.info/index.php/Spring_integration_in_jBPM_4

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 玉门市| 淮滨县| 河北省| 新乡县| 汉中市| 增城市| 福海县| 农安县| 日土县| 南开区| 舒城县| 刚察县| 麦盖提县| 德州市| 伊春市| 应城市| 随州市| 长岛县| 临安市| 乌兰察布市| 南部县| 安远县| 定兴县| 刚察县| 临泉县| 天气| 礼泉县| 寿光市| 敦煌市| 高淳县| 萨嘎县| 明水县| 无棣县| 乌什县| 盘锦市| 邹城市| 黎平县| 苗栗市| 城步| 伊金霍洛旗| 镇巴县|