1 Reply Latest reply on Jan 10, 2006 7:23 PM by Elmo

    Enterprise configuration problem for 3.1

    Elmo Novice

      Hello,

      I am using JBPM 3.1-alpha1 in JBoss.
      If I use environment 2 everyhting's ok except for some commit errors.
      If I use environment 3 configuration (Enterprise) i get the following error (excerpt):

      17:31:34,775 ERROR [LogInterceptor] RuntimeException in method: public abstract java.lang.String com.rameses.services.workflow.WorkflowService.removeProcessInstance(java.lang.Long) throws java.rmi.RemoteException:
      java.lang.RuntimeException: couldn't instantiate bean 'null' of type 'org.jbpm.tc.jdbc.DataSourceConnectionInterceptor'
       at org.jbpm.of.info.BeanInfo.getNewObject(BeanInfo.java:68)
       at org.jbpm.of.ObjectFactory.getObject(ObjectFactory.java:282)
       at org.jbpm.of.info.ListInfo.getNewObject(ListInfo.java:31)
       at org.jbpm.tc.info.ContextBuilderInfo.getNewObject(ContextBuilderInfo.java:24)
       at org.jbpm.of.ObjectFactory.getObject(ObjectFactory.java:274)
       at org.jbpm.of.ObjectFactory.getObject(ObjectFactory.java:219)
       at org.jbpm.of.ObjectFactory.getNewObject(ObjectFactory.java:206)
       at org.jbpm.JbpmConfiguration.getObject(JbpmConfiguration.java:64)
       at org.jbpm.tc.ContextBuilder.create(ContextBuilder.java:115)
       at com.rameses.services.workflow.WorkflowServiceBean.removeProcessInstance(WorkflowServiceBean.java:88)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
      more...
      


      When I checked out the class org.jbpm.tc.jdbc.DataSourceConnectionInterceptor, it does not exist. Is there a new update for the class or have I missed out something. Thanks

      Regards,

      Elmo


        • 1. Re: Enterprise configuration problem for 3.1
          Elmo Novice

          Hello,

          Disregard this post. After reading some posts here that the ContextBuilder will be phased out, I checked out the beta version. And true, there was no ContextBuilder anymore. Its been replaced with a JbpmContext. I found the on-demand hibernate mapping and not during startup really cool.

          Note for those interested esp. in deploying in a managed container. Its not going to work out of the box. You have to set isTransactionEnabled to false in the db persistence service factory in the jbpm.cfg.xml. I found this the hard way through the examples.

          Regards,

          Elmo