• Activiti引擎启动失败


    Activiti引擎启动失败  

    今天部署项目测试时发现activiti启动失败,研究了会才把问题解决!!

      错误信息:SEVERE: problem during schema create, statement create sequence act_evt_log_seq

      Error creating bean with name 'workFlowEngineService': Injection of resource dependencies failed; nested exception is       org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.engine.ActivitiException: couldn't create db schema: create sequence act_evt_log_seq

    at com.mchange.v2.c3p0.impl.NewProxyStatement.execute(NewProxyStatement.java:909)

    at org.activiti.engine.impl.db.DbSqlSession.executeSchemaResource(DbSqlSession.java:1274)

    ... 87 more

     

    解决办法:

      手动将activiti的所有表删除,然后修改activiti.cfg.xml配置文件中的databaseSchemaUpdate=“drop_create”,最后启动activiti引擎,此时会出现表不存在等错误,因为表已经被你手动删除了。执行完后,再启动activiti引擎,这个问题就不再抛出了。

    databaseSchemaUpdate属性的取值:

      flase: 默认值。activiti在启动时,会对比数据库表中保存的版本,如果没有表或者版本不匹配,将抛出异常。

      true: activiti会对数据库中所有表进行更新操作。如果表不存在,则自动创建。

      create_drop: 在activiti启动时创建表,在关闭时删除表(必须手动关闭引擎,才能删除表)。

      drop_create: 在activiti启动时删除原来的旧表,然后在创建新表(不需要手动关闭引擎)。

  • 相关阅读:
    opacity背景层透明导致文字也透明
    [css3]叉叉旋转效果
    [css]当父元素的margin-top碰上子元素的margin-top
    Python_Mix*异常处理
    Python_Mix*OS模块,序列化模块种的json,pickle
    Python_Mix*random模块,time模块,sys模块,os模块
    Python_Mix*re模块基础方法,进阶,正则表达式的使用
    Python_Mix*re模块,元字符,量词
    Python_Mix*匿名函数,sorted,filter,map,递归函数,二分法查找
    Python_Mix*内置函数
  • 原文地址:https://www.cnblogs.com/gkl2013/p/4902822.html
Copyright © 2020-2023  润新知