Activiti+ant安装和配置

[b][color=red]前提:JBK、Tomcat和Eclispe已经安装好[/color][/b]
[size=x-large][b]ANT安装[/b][/size]

[b]1、下载ant,并解压到C:\apache-ant-1.8.2[/b]
[url]http://ant.apache.org/bindownload.cgi[/url]

[b]2、配置环境变量 [/b]
[list]
[*] ANT_HOME:C:\apache-ant-1.8.2 (这里为你自己解压缩的目录)
[*] PATH:%ANT_HOME%\bin(这个设置是为了方便在dos环境下操作)
[/list]
[b]3、检测是否安装成功[/b]
[img]http://dl.iteye.com/upload/attachment/525056/394d8b3a-f4aa-3384-8d20-2a59b7522d92.jpg[/img]


[b][size=x-large]Activiti安装[/size][/b]

[b]1、下载activiti-5.5.zip,并解压到D:\activiti-5.5[/b]
[url]http://www.activiti.org/download.html[/url]

[b]2、运行脚本,设置 Activiti 环境[/b]
[list]
[*] 打开DOS窗口,cd到setup目录。
[*]输入 ant demo.start,然后按 enter 键。
[*]脚本完成后,会在浏览器内启动所有的 Activiti 的 web 应用。以 kermit/kermit 登陆。
[/list]
[img]http://dl.iteye.com/upload/attachment/525060/4fd3e8a4-cd4c-345a-87fb-6ec5aa55573f.jpg[/img]

[quote]注意:在执行ant demo.start时,如果更换数据库,比如mysql(默认是H2),需要更新如下文件[/quote]
[b]1.build.properties[/b]
 
# The db property should refer to the type of database that
# you want to use. Currently h2, MySQL(mysql),
# Postgres SQL(postgres) and Oracle 10g (oracle) is supported.
#
# SQL Server(mssql) is also supported, but is an EXPERIMENTAL feature.
# IBM DB2(db2) is also supported, but is an EXPERIMENTAL feature.
#
# When using oracle, follow the instructions described in the userguide, chapter
# Configuration > Changing the database > Using Oracle in the demo setup
db=mysql

# The tx property refers to the transaction environment
# you want to use. Choose from {standalone}
tx=standalone

# Specify the version of Tomcat that you want to use.
# We only tested with the given Tomcat version but in
# theory any tomcat 6.0.x version should do fine.
tomcat.version=6.0.32

# If you have tomcat already downloaded, point the
# downloads.dir property to that directly. If tomcat is
# not found in the downloads.dir, it will be automatically
# downloaded there.
# The downloads directory should be outside of /target/
# to avoid re-downloading after a clean
downloads.dir=../../downloads

# Remove this property or set it to disabled if you're not using Activiti Cycle
feature.cycle=enabled

# Remove this property or set it to disabled if you're not using Activiti Modeler
feature.modeler=enabled

修改数据库类型为mysql
打开文件“setup\build.properties”修改db=mysql(默认为h2)

[b]2、build.mysql.properties[/b]

db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://IP地址:3306/activiti?autoReconnect=true
jdbc.username=所用数据库的用户名
jdbc.password=所用数据库的密码


[size=x-large][b]遇见问题[/b][/size]

1、执行“ant demo.start”之前,需要创建数据库,否则会出现下边的问题:
[img]http://dl.iteye.com/upload/attachment/529092/0b7774d7-2c0a-31e3-a183-25ef04849e01.jpg[/img]

2、执行“ant demo.start”完毕之后,自带的web应用访问不了,如下图:
[img]http://dl.iteye.com/upload/attachment/525532/c5d799ff-202b-3fbe-b0af-356488f07279.jpg[/img]

原因:activiti-modeler-5.5.war不会自动发布,导致访问不了
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值