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

本文总结了解决JBPM与Spring整合时出现的“noJBPM4_EXECUTIONtable”错误的方法,包括调整jbpm.hibernate.cfg.xml配置、设置MySQL字符集及整理方式,以及正确配置Hibernate方言。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in class path resource [spring/applicationContext-db.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table.   Run the create.jbpm.schema target first in the install tool.

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table.   Run the create.jbpm.schema target first in the install tool.

Caused by: org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table.   Run the create.jbpm.schema target first in the install tool.

 

这个错是在jbpm和spring整合过程中出现的,现在将网上的一些和自己的解决方案进行总结

1、jbpm.hibernate.cfg.xml

      <property name="current_session_context_class">thread</property>

             这行配置不能写,不能从当前线程中获取session

2、mysql的数据库字符集和整理按照如下进行设置

 3、hibernate与mysql连接的方言问题

hibernate与mysql5.5的设置应该是

      <property name="dialect">

org.hibernate.dialect.MySQL5InnoDBDialect

 

</property>

这个网上说的,必须写上方言,但是我直接把方言注释了也没错

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值