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 閱讀(971) 評(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)航:
           
          主站蜘蛛池模板: 浦县| 沈丘县| 日照市| 健康| 和政县| 锦屏县| 偏关县| 芦山县| 故城县| 会泽县| 栾城县| 安庆市| 搜索| 曲阳县| 泉州市| 嘉祥县| 泸水县| 和平区| 疏勒县| 手游| 运城市| 临潭县| 西平县| 永泰县| 龙江县| 黄骅市| 四子王旗| 绥中县| 巍山| 思茅市| 鸡东县| 吉木乃县| 贵南县| 湛江市| 庆元县| 安塞县| 遂川县| 呈贡县| 藁城市| 普陀区| 富裕县|