Activiti 5.19部署

Activiti 5.19默认采用H2数据库。如果需要改成MySQL,可按如下操作方式进行修改。

1、修改activiti-explorer.war包下的WEB-INI\classes\db.properties文件,将内容改为如下:

db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/activiti?autoReconnect=true
jdbc.username=root
jdbc.password=root


2、将mysql-connector-java-5.1.27.jar放到activiti-explorer.war包下的WEB-INI\lib文件夹中。这里要注意mysql-connector的版本,我开始放的是5.1.18版本,部署一直失败。改成5.1.27就OK了。


3、将修改后的activiti-explorer.war包放到jett的webapp目录下,启动Jetty即可。

这里要注意,jetty里面的servlet-api的版本需要是3.0以上的。我开始用的是jetty7.4,servlet-api版本是2.5,部署时提示找不到addServlet方法。切换到Jetty9以后问题解决。


4、其他注意事项:jetty启动时会在用户个人目录下建目录,而如果当面的用户名是中文,则启动时activi会提示路径错误,无法转换extension类似的错误。

此时,切换到全英文的用户名下,问题即可解决。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
Activiti_V5.21_用户手册_中文版. Table of Contents 1. 简介 1.1. 协议 1.2. 下载 1.3. 源码 1.4. 必要的软件 1.4.1. JDK 6+ 1.4.2. Eclipse Indigo 和 Juno 1.5. 反馈问题 1.6. 实验性功能 1.7. 内部实现类 2. 开始 2.1. 一分钟入门 2.2. Activiti安装 2.3. Activiti数据库配置 2.4. 引入Activiti jar与依赖 2.5. 下一步 3. 配置 Configuration 3.1. 创建ProcessEngine Creating a ProcessEngine 3.2. ProcessEngineConfiguration bean 3.3. 数据库配置 Database configuration 3.4. JNDI数据源配置 JNDI Datasource Configuration 3.4.1. 使用 Usage 3.4.2. 配置 Configuration 3.5. 支持的数据库 Supported databases 3.6. 创建数据库表 Creating the database tables 3.7. 数据库表名说明 Database table names explained 3.8. 数据库升级 Database upgrade 3.9. 作业执行器与异步执行器(从5.17.0版本起) Job Executor and Async Executor (since version 5.17.0) 3.10. 启用作业执行器 Job executor activation 3.11. 启用异步执行器 Async executor activation 3.12. 配置邮件服务器 Mail server configuration 3.13. 配置历史 History configuration 3.14. 配置在表达式与脚本中暴露的bean Exposing configuration beans in expressions and scripts 3.15. 配置部署缓存 Deployment cache configuration 3.16. 日志 Logging 3.17. 映射诊断上下文 Mapped Diagnostic Contexts 3.18. 事件处理器 Event handlers 3.18.1. 事件监听器实现 Event listener implementation 3.18.2. 配置与安装 Configuration and setup 3.18.3. 在运行时增加监听器 Adding listeners at runtime 3.18.4. 为流程定义增加监听器 Adding listeners to process definitions 执行用户定义逻辑的监听器 Listeners executing user­defined logic 抛出BPMN事件的监听器 Listeners throwing BPMN events 关于流程定义监听器的说明 Notes on listeners on a process­definition 3.18.5. 通过API分发事件 Dispatching events through API 3.18.6. 支持的事件类型 Supported event types 3.18.7. 附加信息 Additional remarks ……
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

郑再鹏

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值