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&...]