1 Reply Latest reply on Jul 28, 2010 8:45 PM by rebody

    Is there a standard configuration for jbpm4+Spring

    yushanyuan

      Hi , guys

        i integrated jBPM with spring just following /devguide/html_single/index.html#springIntegration.

       

      import jbpm.tx.spring.cfg.xml , then configurate springHepler and processEngine. however,it throwed out  exception as follow:

       

       

      -------------------------

       

      Caused by: java.lang.NullPointerException
      at org.jbpm.pvm.internal.processengine.SpringProcessEngine.create(SpringProcessEngine.java:65)
      at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:90)
      at org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine(SpringHelper.java:50)
      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:597)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:146)
      ... 15 more

       

       

       

      --------------------------

       

      i think that because i didn't configurate a sessionFactory in the file applicationContext.xml. but if i configurate a sessionFactory, then i should also configurate a dataSource  and  the property like mappingResources for it. we have the dataSource and the  mappingResources content in jbpm.hibernate.cfg.xml already. so do we need to configurate these content again? or maybe i walk on a wrong way.

       

      anyone can help?

       

      Thanks