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

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

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

    閔毓
    http://www.eshoo.com.cn 歡迎來到異客中國
    posts - 49,comments - 97,trackbacks - 0

    摘自: http://blog.yesky.com/128/javafoot/1197628.shtml
    環境:
    JDK142
    tomcat 5.0
    mysql 5.0.16
    apache-ant-1.6.5
    jbpm-starters-kit-3.1.4
    一、解壓縮jdpm-starters-kit-3.1.4,標識為:JBPM_HOME
    ?????? 在mysql數據庫中建庫”jbpm“,在%JBPM_HOME%/lib下,建立mysql文件夾,將mysql驅動程序拷貝到mysql文件夾下。
    二、為ant創建jbpm相關數據庫修改相關配置文件

    1
    、 %JBPM_HOME%\src\resources\mysql下,創建create.db.hibernate.properties,“hsqldb 目錄改名為 “mysql” ,并修改 create.db.hibernate.properties文件,內容如下:

    1? #?these?properties?are?used?by?the?build?script?to?create?
    2?#?a?hypersonic?database?in?the?build/
    db?directory?that?contains?
    3?
    #?the?jbpm?tables?and?a?process?deployed?in?there
    4?hibernate.dialect=
    org.hibernate.dialect.MySQLDialect
    5?hibernate.connection.driver_class=
    com.mysql.jdbc.Driver
    6?hibernate.connection.url=jdbc:mysql://localhost:3306/jbpm

    7?hibernate.connection.username= root
    8?hibernate.connection.password=

    9?hibernate.show_sql=true

    2 、修改 %JBPM_HOME%\build.deploy.xml 文件中 “target” “create.db” 的內容,刪除 “db.start” , “db.stop” ,將所有的 “hsqldb” 替換為 “mysql”
    內容如下:


    ?1?<target?name="create.db"?depends="declare.jbpm.tasks,?db.clean"?description="creates?a?hypersonic?database?with?the?jbpm?tables?and?loads?the?processes?in?
    ?2?there">
    ?3?????<jbpmschema?actions="create"?properties="${basedir}/src/resources/mysql/create.db.hibernate.properties"/> ?
    ?4?????<loadidentities?file="${basedir}/src/resources/mysql/identity.db.xml"?properties="${basedir}/src/resources/mysql/create.db.hibernate.properties"/>
    ?
    ?5?????<ant?antfile="build.xml"?target="build.processes"?inheritall="false"?/>
    ?
    ?6?????<deploypar?properties="${basedir}/src/resources/mysql/create.db.hibernate.properties">

    ?7???????<fileset?dir="build"?includes="*.par"?/>
    ?8?????</deploypar>
    ?9???</target>
    10?

    三、為 ant 創建 jbpm.war 包修改相關配置文件
    1
    、修改 %JBPM_HOME%\src\config.files\hibernate.cfg.xml 文件中數據庫連接配置部分,內容如下:

    ?1? ……
    ?2?????<!--?jdbc?connection?properties?-->

    ?3?????<property?name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
    ?4?????<property?name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    ?5?????<property?name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpm</property>
    ?6?????<property?name="hibernate.connection.username">root</property>
    ?7?????<property?name="hibernate.connection.password">rootrootrootroot</property>
    ?8????<!--?other?hibernate?properties?-->
    ?9?????<property?name="hibernate.show_sql">true</property>
    10? ????……
    11?
    2 、創建/修改 %JBPM_HOME%\src\resources\jbpm.sar\jbpm.properties ,內容如下:

    ?1?jbpm.scheduler.service.factory= org.jbpm.scheduler.impl.SchedulerServiceImpl
    ?2?jbpm.task.instance.class=
    org.jbpm.taskmgmt.exe.TaskInstance
    ?3?#?uncomment?the?next?line?if
    ?JbpmSessionFactory.getInstance()
    ?4?
    #?should?lookup?the?singleton?instance?from?JNDI?instead?of?creating?
    ?5?#?a?default
    ?one.
    ?6?
    #
    ?7?#?jbpm.session.factory.jndi.name=java:/jbpm/
    JbpmSessionFactory
    ?8?#?uncomment?the?next?line?to?use?the?file?system?instead?of?the?database?for
    ?
    ?9?
    #?storing?files?related?to?a?process?definition
    10?
    #
    11?#?jbpm.files.dir=c:/
    jbpm.data
    12?
    #?resource?path?to?a?properties?file?that?will?overwrite?all?the?hibernate?
    13?
    #?properties.?For?database?specific?builds?in?db?project?there?is?a?different
    14?#?hibernate.properties?file?on?the?classpath?for
    ?each?database.?You?could?change
    15?#?the?default?database?for
    ?any?testing?runs?by?uncommenting?the?next?line?and
    16?
    #?adding?a?hibernate.properties?file?in?the?basedir.
    17?
    #
    18?jbpm.hibernate.cfg.xml=
    jbpm.hibernate.cfg.xml
    19?#?jbpm.hibernate.properties=
    jbpm.hibernate.properties
    20?

    3 、修改 %JBPM_HOME%\src\resources\jbpm.sar\jbpm.hibernate.properties ,只用 hibernate.cfg.xml 來配置 hibernate ,因此全部注釋掉,內容如下:

    1?#?hibernate.dialect= org.hibernate.dialect.HSQLDialect
    2?#?hibernate.connection.datasource=java:/
    DefaultDS
    3?#?hibernate.show_sql=true

    4 、修改 %JBPM_HOME%\build.deploy.xml 文件, “target” “build.webapp” 的內容,原文件相關的 jar 包未包含全,因此補全,內容如下:
    ?

    ?1??<target?name="build.webapp"?description="builds?jbpm.war">
    ?2?????<ant?antfile="build.xml"?target="build"?/><!--?原文件是target="build.webapp"?-->
    ?3?????<mkdir?dir="build/jbpm.war.dir"?/>
    ?4?????<copy?todir="build/jbpm.war.dir">
    ?5???????<fileset?dir="src/resources/jbpm.war"?/>
    ?6?????</copy>
    ?7?????<copy?todir="build/jbpm.war.dir/WEB-INF/lib">
    ?8???????<fileset?dir="build"?includes="jbpm*.jar,converter.jar"?excludes="*src*.jar"?/>
    ?9???????<fileset?dir="lib/jsf"?includes="*.jar"?/>
    10???????<fileset?dir="lib/dom4j"?includes="*.jar"?/>
    11???????<!--fileset?dir="lib/jaxen"?includes="*.jar"?/?included?in?lib/hibernate?-->
    12???????<fileset?dir="lib/hibernate"?includes="*.jar"?/>
    13???????<fileset?dir="lib/mysql"?includes="*.jar"?/>
    14???????<fileset?dir="lib/commons"?includes="commons-digester-*.jar,??commons-beanutils-*.jar"?/>
    15???????<fileset?dir="lib/jboss"?includes="*.jar"??excludes="jboss*.jar,*servlet*.jar,*hsql*.jar,dom4j*.jar"?/>
    16?????</copy>
    17?????<jar?destfile="build/jbpm.war">
    18???????<fileset?dir="build/jbpm.war.dir"?/>
    19?????</jar> ?
    20???</target>

    21?

    四、執行 Ant
    1
    、創建并初始化 jbpm 例子所需的
    table

    1?ant?create.db?-buildfile?build.deploy.xml


    2 、生成 jbpm.war

    1?ant?build.webapp?-buildfile?build.deploy.xml


    ?


    五、 tomcat 擁抱 jbpm
    %JBPM_HOME%\build\jbpm.war 文件復制到 Tomcat webapp 目錄下,啟動 Tomcat 自動部署 jbpm ,訪問 http://localhost:8080/jbpm
    ,出現登錄頁面,配置成功。

    ?

    posted on 2007-03-30 17:42 閔毓 閱讀(5197) 評論(2)  編輯  收藏 所屬分類: Java開發

    FeedBack:
    # re: tomcat+mysql+jbpm配置工作流(1)
    2007-07-24 17:59 | 44
    1111  回復  更多評論
      
    # re: tomcat+mysql+jbpm配置工作流(1)
    2008-11-14 14:20 | 魯勝迪
    好亂,看不懂,希望轉載的時候自己可以先整理一下~~~~

    ============================================
    解壓縮jdpm-starters-kit-3.1.4,標識為:JBPM_HOME
    在mysql數據庫中建庫”jbpm“,在%JBPM_HOME%/lib下,建立mysql文件夾,將mysql驅動程序拷貝到mysql文件夾下。
    二、為ant創建jbpm相關數據庫修改相關配置文件
    1 、 %JBPM_HOME%\src\resources\mysql下,創建create.db.hibernate.properties,將“hsqldb ” 目錄改名為 “mysql” ,并修改 create.db.hibernate.properties文件,內容如下:

    ================看到這里就看不下去了=============  回復  更多評論
      
    主站蜘蛛池模板: 国产亚洲综合网曝门系列| 午夜老司机免费视频| 亚洲AV无码一区东京热| 两性色午夜视频免费网| 久久精品国产亚洲一区二区三区| 美女又黄又免费的视频| 亚洲国产成人五月综合网 | igao激情在线视频免费| 亚洲 小说区 图片区 都市| MM1313亚洲精品无码久久| 四虎1515hm免费国产| eeuss免费影院| 亚洲成Av人片乱码色午夜| 亚洲视频免费一区| 在线观看亚洲AV每日更新无码| 成人免费一级毛片在线播放视频| 亚洲一卡一卡二新区无人区| 国产精品免费视频播放器| 羞羞视频免费网站日本| 国产V亚洲V天堂A无码| 日本高清在线免费| 国内成人精品亚洲日本语音| 久久亚洲AV无码西西人体| 国产精品网站在线观看免费传媒| 7777久久亚洲中文字幕蜜桃| 最近2019中文字幕mv免费看| 免费一区二区无码视频在线播放| 国产亚洲综合网曝门系列| 在线看片无码永久免费视频| 免费国产在线精品一区| 亚洲av日韩av不卡在线观看| 成人免费无码大片a毛片软件| 国产特黄一级一片免费| 亚洲一区二区三区91| 亚洲国产精品成人网址天堂| 在线播放免费人成毛片乱码| 亚洲精品国产国语| 亚洲综合av永久无码精品一区二区 | 中文字幕免费在线观看| 看亚洲a级一级毛片| 91在线精品亚洲一区二区|