[jboss-user] [jBPM] - Re: Errors testing Hello Process Example with Persistence (jBPM 5.3)

Maciej Swiderski do-not-reply at jboss.com
Mon Jul 9 07:41:23 EDT 2012


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Errors testing Hello Process Example with Persistence (jBPM 5.3)"

To view the discussion, visit: https://community.jboss.org/message/746912#746912

--------------------------------------------------------------
Make sure you have proper definitions in your persistence xml, here is a sample from default installation (not complete just the relevant part, I think):


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

    <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
    <class>org.drools.persistence.info.SessionInfo</class>
    <class>org.drools.persistence.info.WorkItemInfo</class>

    <class>org.jbpm.process.audit.ProcessInstanceLog</class>
    <class>org.jbpm.process.audit.NodeInstanceLog</class>
    <class>org.jbpm.process.audit.VariableInstanceLog</class>


Important element is in bold, make sure you have it there and it is accessible as that file defines ProcessInstanceInfor entity. This is valid for hibernat 3.x usage (JPA1).

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/746912#746912]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120709/38a958a4/attachment.html 


More information about the jboss-user mailing list