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