加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

初学JBPM。发现的错误JBPM no jBPM DB schema

发布时间:2020-12-15 22:51:10 所属栏目:百科 来源:网络整理
导读:在JBPM 的src目录下面有 jbpm.cfg.xml jbpm.hibernate.cfg.xml jbpm.mail.properties logging.properties 以上是4个默认配置文件。 在 jbpm.hibernate.cfg.xml ?xml version="1.0" encoding="utf-8"?!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/
 
 
 
在JBPM 的src目录下面有 
 

jbpm.cfg.xml

jbpm.hibernate.cfg.xml

jbpm.mail.properties

logging.properties

以上是4个默认配置文件。

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="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> //里面的数据库方言会导致运行错误
     <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
     <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
     <property name="hibernate.connection.username">root</property>
     <property name="hibernate.connection.password">1234</property>
     <property name="hibernate.hbm2ddl.auto">update</property>
     <property name="hibernate.format_sql">true</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>

错误如下

no jBPM DB schema: no JBPM4_EXECUTION table. Run the create.jbpm.schema targ

JBPM没有操作数据库的权域,也就是说现在JBPM尚无权操作数据库

解决方法

如果你的MySql使用的是MySQLDialect 方言,该为MySQLInnoDBDialect试试 如果你的MySql使用的是MySQLInnoDBDialect 方言,请改为MySQLDialect试试

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读