0 Replies Latest reply on Aug 14, 2013 6:27 AM by diyyadav

    jbpm and spring integration

    diyyadav

      hi everyone,

      when doing jbpm and spring integration given at https://github.com/mswiderski/jbpm-examples/tree/master/jbpm-spring-web site I am getting following error:

       

      org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn:137 - Assign Task:2] -- Named query not found: ProcessInstancesWaitingForEvent

       

       

      one solution i found at one site but it is not working for me:-

       

      When you deploy to an application server, it might not always be able to pick up your orm.xml in the META-INF directory by default.  The best way is to solve this is usually create a custom orm file (in this case a JBPMorm.xml in the META-INF directory) and add the mapping directly to your persistence.xml:

      <persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
      <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>java:jdbc/testDS1</jta-data-source>
      <mapping-file>META-INF/JBPMorm.xml</mapping-file>