6 Replies Latest reply on Nov 13, 2008 9:30 AM by Ezeozue Chidube

    JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?

    efi plotkin Newbie

      Hi,

      I'm trying to run a proof-of-concept project using jBPM 3.2 beta2.

      When running an (included in 3.1.4 but omitted from 3.2b2) HelloWorldDbTest, I get the following exception:

      org.jbpm.JbpmException: no jbpm tx service configured
       at org.jbpm.persistence.db.DbPersistenceService.isRollbackOnly(DbPersistenceService.java:317)
       at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:220)
       at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:170)
       at org.jbpm.svc.Services.close(Services.java:222)
       at org.jbpm.JbpmContext.close(JbpmContext.java:139)
       at org.jbpm.tutorial.db.HelloWorldDbTest.deployProcessDefinition(HelloWorldDbTest.java:138)
       at org.jbpm.tutorial.db.HelloWorldDbTest.testSimplePersistence(HelloWorldDbTest.java:100)


      I understand that transaction management has changed in 3.2b2, since the previous implementation of DbPersistenceService reads:
      public void close() {
       if ( (session!=null)
       && (transaction==null)
       && (isRollbackOnly)
       ) {


      and the new version reads:
      public void close() {
       if ( (session!=null)
       && (transaction==null)
       && (isRollbackOnly())
       ) {


      If there is something I should do to configure jbpm tx service? I can't find any description in the docs accompanying 3.2b2.

      Thanks,

      efi

        • 1. Re: JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?
          efi plotkin Newbie

           

          "efip10" wrote:
          Hi,

          I'm trying to run a proof-of-concept project using jBPM 3.2 beta2.

          When running an (included in 3.1.4 but omitted from 3.2b2) HelloWorldDbTest, I get the following exception:

          org.jbpm.JbpmException: no jbpm tx service configured
           at org.jbpm.persistence.db.DbPersistenceService.isRollbackOnly(DbPersistenceService.java:317)
           at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:220)
           at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:170)
           at org.jbpm.svc.Services.close(Services.java:222)
           at org.jbpm.JbpmContext.close(JbpmContext.java:139)
           at org.jbpm.tutorial.db.HelloWorldDbTest.deployProcessDefinition(HelloWorldDbTest.java:138)
           at org.jbpm.tutorial.db.HelloWorldDbTest.testSimplePersistence(HelloWorldDbTest.java:100)


          I understand that transaction management has changed in 3.2b2, since the previous implementation of DbPersistenceService reads:
          public void close() {
           if ( (session!=null)
           && (transaction==null)
           && (isRollbackOnly)
           ) {


          and the new version reads:
          public void close() {
           if ( (session!=null)
           && (transaction==null)
           && (isRollbackOnly())
           ) {


          If there is something I should do to configure jbpm tx service? I can't find any description in the docs accompanying 3.2b2.

          Thanks,

          efi


          No one can help me out with this?

          • 2. Re: JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?
            Florian Bauer Newbie

            I have the same problem in this jbpm version:

            18:20:07,572 INFO [STDOUT] [2007.03.07][com.dooris.base.portal.BPMAction][org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.JbpmException: no jbpm tx service configured}][ERROR]:
            18:20:07,572 ERROR [STDERR] javax.ejb.EJBException: org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.JbpmException: no jbpm tx service configured}
            18:20:07,572 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
            18:20:07,572 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
            18:20:07,572 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
            18:20:07,572 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            18:20:07,588 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
            18:20:07,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            18:20:07,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
            18:20:07,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            18:20:07,588 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
            18:20:07,588 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
            18:20:07,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            18:20:07,588 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
            18:20:07,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            18:20:07,588 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
            18:20:07,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            18:20:07,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)
            18:20:07,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
            18:20:07,588 ERROR [STDERR] at $Proxy105.createProcessInstance(Unknown Source)
            


            • 3. Re: JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?
              G M Newbie

              In case your problem is still unsolved: I think you have to define

              in your jbpm.cfg.xml, for the jbpm-context you have defined.

              • 4. Re: JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?
                G M Newbie

                In case your problem is still unsolved: I think you have to define
                <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
                in your jbpm.cfg.xml, for the jbpm-context you have defined.

                • 5. Re: JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?
                  CHAOHUI SUN Newbie

                  just like this:

                  <jbpm-context>
                   <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
                   <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
                   </jbpm-context>
                  


                  • 6. Re: JBPM 3.1.4 tutorial examples not working in JBPM 3.2b2?
                    Ezeozue Chidube Newbie

                    you could try using the jbpm.cfg.xml found in org/jbpm in the jbpm-jpdl.jar within the jbpm-consolein the deploy folder of the jbpm suite. The file is actually named default.jbpm.cfg.xml so rename it and replace your jbpm.cfg.xml with it. Make sure you clean your build folder and retry.