<< 用Rational Rose从对象模型(类图)转换为数据模型 | 首页 | Scaling Enterprise Java on 64-bit Multi-Core X86-Based Servers >>

安装Shark工作流引擎

环境:(请一定要注意环境)
shark-cvs-latest(2004-5-18后)+mysql4.0.17-nt+mysql-connector-java-3.1-nightly-20040602-bin.jar+中文windows2k+tomcat5.0.19+hibernate

1、如果你下载的文件是如shark-cvs-latest.tar.gz或者shark-1.0-beta1.zip或者shark-1.0-beta2.zip,
那么要从http://shark.objectweb.org/的CVS Repository下载
org.enhydra.shark.corbaclient.workflowadmin.worklist.actions.ReassignWorkitem.java

2、解压下载的源码包,改写%shark-cvs-latest%\Shark\modules目录里hibernate*.cfg.xml文件
如:
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="connection.url">jdbc:mysql://127.0.0.1/shark?useUnicode=true&amp;characterEncoding=GBK</property>
<property name="connection.username">root</property>
<property name="connection.password"></property>

3、把上述的文件ReassignWorkitem.java放入源码%shark-cvs-latest%\Shark\modules\SharkCORBA\Client\src\org\enhydra\shark\corbaclient\workflowadmin\worklist\actions里,
编译,进入%shark-cvs-latest%\Shark,执行make

4、将mysql-connector-java-3.1-nightly-20040602-bin.jar 拷贝到%shark-cvs-latest%\Shark\output\Shark\lib,并将旧版本删掉

4、修改Shark.conf,进入%shark-cvs-latest%\Shark\output\Shark,将Shark.conf里有关DODS注释,将有关Hibernate去掉注释

5、改写%shark-cvs-latest%\Shark\output\Shark\sql\postgresql\sql\shark-hibernate-all-modules.sql
改为适合mysql 的脚本,创建mysql数据库,注意:一共44个表。脚本

6、将shark-cvs-latest\Shark\modules\SharkJSPClient\WEB-INF\web.xml拷贝到上级目录
进入%shark-cvs-latest%\Shark\modules\SharkJSPClient,运行ant。在%shark-cvs-latest%\Shark\output\Shark\JSPClient找war包

7、将sharkworklisthandler.war放入%TOMCAT_HOME%/webapps/下,拷贝shark-cvs-latest\Shark\output\Shark\Shark.conf到
%TOMCAT_HOME%/webapps/sharkworklisthandler/conf/Shark.conf
并修改Shark.conf里的EXTERNAL_PACKAGES_REPOSITORY=@@/repository/external

8、运行startup.bat

 

标签 : ,



发表评论 发送引用通报