解决方案
修改jbpm.hibernate.cfg.xml文件为
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="dialect"> //org.hibernate.dialect.MySQLDialect 修改为 org.hibernate.dialect.MySQLInnoDBDialect </property> <property name="connection.url"> jdbc:mysql://localhost:3306/jbpmtest </property> <property name="connection.username">root</property> <property name="connection.password">aaa123456</property> <property name="connection.driver_class"> com.mysql.jdbc.Driver </property> <property name="myeclipse.connection.profile">mysql</property> <property name="show_sql">true</property> <!-- <property name="hbm2ddl.auto">create</property> --> <mapping resource="jbpm.repository.hbm.xml" /> <mapping resource="jbpm.execution.hbm.xml" /> <mapping resource="jbpm.history.hbm.xml" /> <mapping resource="jbpm.task.hbm.xml" /> <mapping resource="jbpm.identity.hbm.xml" /> </session-factory> </hibernate-configuration>
原文:http://www.cnblogs.com/kite/p/3698980.html