[jboss-user] [jBPM] - JBPM Persistence Error
shashi mhatre
do-not-reply at jboss.com
Wed Jan 12 14:24:30 EST 2011
shashi mhatre [http://community.jboss.org/people/khalipili] created the discussion
"JBPM Persistence Error"
To view the discussion, visit: http://community.jboss.org/message/580402#580402
--------------------------------------------------------------
Need help in persisting entire workflow in MySql database.
I have created a sample workflow in JBPM and trying to persist the flow in MySQL database. JBPM is successfully starting the process and start persisting the session info. but once it comes to persist "Human Task" it throws error message as - "java.lang.IllegalArgumentException: Unknown entity: org.drools.persistence.processinstance.WorkItemInfo"
My persistence.xml file config is :
<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/processInstanceDS</jta-data-source>
<class>org.drools.persistence.session.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<properties>
<!-- MySQL database -->
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/TaskDB" />
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
<property name="hibernate.connection.username" value="root" />
<property name="hibernate.connection.password" value="password" />
<property name="hibernate.max_fetch_depth" value="3" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="true" />
<!--
<property name="hibernate.jndi.class" value="bitronix.tm.jndi.BitronixInitialContextFactory" />
-->
<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.BTMTransactionManagerLookup" />
</properties>
</persistence-unit>
I am using JBPM5 - 5.0-SNAPSHOT Build
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580402#580402]
Start a new discussion in jBPM at Community
[http://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/20110112/417930f7/attachment-0001.html
More information about the jboss-user
mailing list