<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Terry.Li-彬

    虛其心,可解天下之問(wèn);專(zhuān)其心,可治天下之學(xué);靜其心,可悟天下之理;恒其心,可成天下之業(yè)。

      BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      143 隨筆 :: 344 文章 :: 130 評(píng)論 :: 0 Trackbacks
     

    jBPM3.1 +Oracle10g+Tomcat-5.0.30安裝實(shí)踐

    環(huán)境:
    jdk1.5.0_05
    jakarta-tomcat-5.5.9
    apache-ant-1.6.5(1.6.0
    會(huì)報(bào)錯(cuò))
    mysql-5.0.16-win32
    jbpm-3.0.2


    一、JBPM_HOME即為解開(kāi)的jbpm-3.0.2.zip文件
    %JBPM_HOME%"lib
    下,建mysql目錄,將mysqljdbc驅(qū)動(dòng)拷入;
    mysql中建數(shù)據(jù)庫(kù)   CREATE DATABASE jbpm;


    二、為ant創(chuàng)建jbpm相關(guān)數(shù)據(jù)庫(kù)修改相關(guān)配置文件
    1
    、%JBPM_HOME%"src"resources目錄下,將“hsqldb”目錄改名為“mysql”,并修改create.db.hibernate.properties文件,形如:
    # these properties are used by the build script to create
    # a hypersonic database in the build/db directory that contains
    # the jbpm tables and a process deployed in there

    hibernate.dialect=org.hibernate.dialect.MySQLDialect
    hibernate.connection.driver_class=com.mysql.jdbc.Driver
    hibernate.connection.url=jdbc:mysql://localhost:3306/jbpm
    hibernate.connection.username=root
    hibernate.connection.password=
    hibernate.c3p0.min_size=1
    hibernate.c3p0.max_size=3
    hibernate.show_sql=true

    2
    、修改%JBPM_HOME%"build.deploy.xml文件中“target”“create.db” 的內(nèi)容,刪除“db.start”,“db.stop”,將所有的“hsqldb”替換為“mysql”
    形如:
      <target name="create.db" depends="declare.jbpm.tasks, db.clean" description="creates a hypersonic database with the jbpm tables and loads the processes in

    there">
        <jbpmschema actions="create" properties="${basedir}/src/resources/mysql/create.db.hibernate.properties"/>
        <loadidentities file="${basedir}/src/resources/mysql/identity.db.xml" properties="${basedir}/src/resources/mysql/create.db.hibernate.properties"/>
        <ant antfile="build.xml" target="build.processes" inheritall="false" />
        <deploypar properties="${basedir}/src/resources/mysql/create.db.hibernate.properties">
            <fileset dir="build" includes="*.par" />
        </deploypar>
        <!--antcall target="db.stop" /-->
      </target>


    三、為ant創(chuàng)建jbpm.war包修改相關(guān)配置文件
    1
    、修改%JBPM_HOME%"src"config.files"hibernate.cfg.xml文件中數(shù)據(jù)庫(kù)連接配置部分,形如:
        ……
        <!-- jdbc connection properties -->
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpm</property>
        <property name="hibernate.connection.username">root</property>
        <property name="hibernate.connection.password">rootrootrootroot</property>
             
        <!-- c3p0 connection pooling properties -->
        <property name="hibernate.c3p0.min_size">1</property>
        <property name="hibernate.c3p0.max_size">3</property>

        <!-- other hibernate properties -->
        <property name="hibernate.show_sql">true</property>
        ……

    2
    、修改%JBPM_HOME%"src"resources"jbpm.sar"jbpm.properties,形如:
    jbpm.scheduler.service.factory=org.jbpm.scheduler.impl.SchedulerServiceImpl
    jbpm.task.instance.class=org.jbpm.taskmgmt.exe.TaskInstance

    # uncomment the next line if JbpmSessionFactory.getInstance()
    # should lookup the singleton instance from JNDI instead of creating
    # a default one.
    #
    # jbpm.session.factory.jndi.name=java:/jbpm/JbpmSessionFactory

    # uncomment the next line to use the file system instead of the database for
    # storing files related to a process definition
    #
    # jbpm.files.dir=c:/jbpm.data

    # resource path to a properties file that will overwrite all the hibernate
    # properties. For database specific builds in db project there is a different
    # hibernate.properties file on the classpath for each database. You could change
    # the default database for any testing runs by uncommenting the next line and
    # adding a hibernate.properties file in the basedir.
    #
    jbpm.hibernate.cfg.xml=jbpm.hibernate.cfg.xml
    # jbpm.hibernate.properties=jbpm.hibernate.properties

    3
    、修改%JBPM_HOME%"src"resources"jbpm.sar"jbpm.hibernate.properties,只用hibernate.cfg.xml來(lái)配置hibernate,因此全部注釋掉,形如:
    # hibernate.dialect=org.hibernate.dialect.HSQLDialect
    # hibernate.connection.datasource=java:/DefaultDS
    # hibernate.show_sql=true

    4
    、修改%JBPM_HOME%"build.deploy.xml文件,“target”“build.webapp”的內(nèi)容,原文件相關(guān)的jar包未包含全,因此補(bǔ)全,形如:
      <target name="build.webapp" description="builds jbpm.war">
        <ant antfile="build.xml" target="build" /><!--
    原文件是target="build.webapp" -->
        <mkdir dir="build/jbpm.war.dir" />
        <copy todir="build/jbpm.war.dir">
            <fileset dir="src/resources/jbpm.war" />
        </copy>
        <copy todir="build/jbpm.war.dir/WEB-INF/lib">
            <fileset dir="build" includes="jbpm*.jar,converter.jar" excludes="*src*.jar" />
            <fileset dir="lib/jsf" includes="*.jar" />
            <fileset dir="lib/dom4j" includes="*.jar" />
            <!--fileset dir="lib/jaxen" includes="*.jar" / included in lib/hibernate -->
            <fileset dir="lib/hibernate" includes="*.jar" />
            <fileset dir="lib/mysql" includes="*.jar" />
            <fileset dir="lib/commons" includes="commons-digester-*.jar,   commons-beanutils-*.jar" />
            <fileset dir="lib/jboss" includes="*.jar"   excludes="jboss*.jar,*servlet*.jar,*hsql*.jar,dom4j*.jar" />
        </copy>
        <jar destfile="build/jbpm.war">
            <fileset dir="build/jbpm.war.dir" />
        </jar>
      </target>


    四、執(zhí)行Ant
    1
    、創(chuàng)建并初始化jbpm例子所需的table
    ant create.db -buildfile build.deploy.xml
    2
    、生成jbpm.war
    ant build.webapp -buildfile build.deploy.xml


    五、tomcat擁抱jbpm
    %JBPM_HOME%"build"jbpm.war文件復(fù)制到Tomcatwebapp目錄下,啟動(dòng)Tomcat自動(dòng)部署jbpm,訪(fǎng)問(wèn)http://localhost:8080/jbpm,出現(xiàn)登錄頁(yè)面,配置成功。

    posted on 2007-09-06 18:09 禮物 閱讀(789) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Jbpm
    主站蜘蛛池模板: 麻豆高清免费国产一区| 久久久www成人免费毛片| 99精品国产免费久久久久久下载| 日本久久久免费高清| 亚洲精品成人无限看| 国产成人精品日本亚洲直接| 羞羞视频在线观看免费| 真人做A免费观看| 精品亚洲成α人无码成α在线观看| 亚洲综合久久久久久中文字幕| 男男gay做爽爽免费视频| 无码国产精品一区二区免费3p| 国产男女性潮高清免费网站| 亚洲国产精品久久久久婷婷软件| 亚洲av乱码中文一区二区三区 | 免费精品国自产拍在线播放| 精品无码AV无码免费专区| 亚洲福利精品一区二区三区| 亚洲影视一区二区| fc2免费人成在线| 成人性生交大片免费看午夜a | 亚洲熟妇av一区二区三区下载| 日韩精品视频在线观看免费 | 伊人亚洲综合青草青草久热| 亚洲一区精彩视频| 秋霞人成在线观看免费视频 | 国产日韩一区二区三免费高清| 免费涩涩在线视频网| 亚洲国产天堂在线观看| 一区二区三区免费在线视频| 无码一区二区三区免费视频| 亚洲欧洲日韩国产综合在线二区| 一级毛片免费毛片毛片| 免费无码不卡视频在线观看| 91久久亚洲国产成人精品性色 | 高清一区二区三区免费视频| 免费人成视频x8x8入口| 国产精品亚洲精品观看不卡| 99精品视频在线观看免费专区| 久久久久亚洲爆乳少妇无 | 亚洲国产区男人本色|