真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

DroolsWorkbench6.5.0.Final環(huán)境部署教程

這篇文章主要講解了“Drools Workbench 6.5.0.Final環(huán)境部署教程”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“Drools Workbench 6.5.0.Final環(huán)境部署教程”吧!

我們提供的服務(wù)有:成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、黟縣ssl等。為上千多家企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢(xún)和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的黟縣網(wǎng)站制作公司

本環(huán)境的搭建只是用來(lái)學(xué)習(xí)用,不可用于線(xiàn)上環(huán)境。

0、環(huán)境

     tomcat7+

     jdk1.5+

     maven

     Linux系統(tǒng)

1、下載

    https://www.drools.org/download/download.html

    下載    Drools Workbench 的 Tomcat7 WAR包,下載后文件:kie-server-distribution-6.5.0.Final.zip

    Drools Workbench 6.5.0.Final環(huán)境部署教程

    解壓后可得到三個(gè)文件,選擇kie-drools-wb-6.5.0.Final-tomcat7.war

2、將(1)中解壓得到的kie-drools-wb-6.5.0.Final-tomcat7.war改名為kiewb.war后,放到tomcat/webapps/目錄下。啟動(dòng)tomcat會(huì)報(bào)錯(cuò),這個(gè)時(shí)候需要參考war解壓后的README.txt文件。

    2.1    Install bitronix transaction manager into your tomcat 7
            - copy following libs into TOMCAT_HOME/lib

Drools Workbench 6.5.0.Final環(huán)境部署教程

            NOTE: versions of the libraries can be different as these are the actual on the time of writing.

    2.2    Create configuration files inside TOMCAT_HOME/conf
        * btm-config.properties

bitronix.tm.serverId=tomcat-btm-node0
bitronix.tm.journal.disk.logPart1Filename=${btm.root}/work/btm1.tlog
bitronix.tm.journal.disk.logPart2Filename=${btm.root}/work/btm2.tlog
bitronix.tm.resource.configuration=${btm.root}/conf/resources.properties

        * resources.properties

resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSource
resource.ds1.uniqueName=jdbc/jbpm
resource.ds1.minPoolSize=10
resource.ds1.maxPoolSize=20
resource.ds1.driverProperties.driverClassName=org.h3.Driver
resource.ds1.driverProperties.url=jdbc:h3:file:~/jbpm
resource.ds1.driverProperties.user=sa
resource.ds1.driverProperties.password=
resource.ds1.allowLocalTransactions=true

        NOTE: jdbc/jbpm is the JNDI name used by tomcat distribution of the application

    2.3    Define system properties for btm.root, bitronix config file, JBoss logging provider and others.
        create setenv.sh (or setenv.bat) file inside TOMCAT_HOME/bin and add following:

CATALINA_OPTS="-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=$CATALINA_HOME \
  -Dbitronix.tm.configuration=$CATALINA_HOME/conf/btm-config.properties \
  -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry \
  -Djava.security.auth.login.config=$CATALINA_HOME/webapps/kiewb/WEB-INF/classes/login.config \
  -Dorg.jboss.logging.provider=jdk \
  -Dorg.uberfire.async.executor.safemode=true"    (*注意:該標(biāo)紅配置在README.txt文件中并沒(méi)有,但是如果按照README.txt配置啟動(dòng)仍會(huì)報(bào)錯(cuò))

        NOTE: On Debian based systems $CATALINA_HOME needs to be replaced with $CATALINA_BASE. ($CATALINA_HOME defaults to /usr/share/tomcat7 and $CATALINA_BASE defaults to /var/lib/tomcat7/)
        NOTE: this is an example for unix like systems for Windows $CATALINA_HOME needs to be replaced with windows env variable or absolute path
        NOTE: java.security.auth.login.config value includes name of the folder in which application is deployed by default it assumes kie-drools-wb so ensure that matches real installation.
        login.config file can be externalized as well meaning be placed outside of war file.          *******************************************************************************

    2.4    Configure JEE security for kie-wb on tomcat (with default realm backed by tomcat-users.xml)

           2a. Copy "kie-tomcat-integration" JAR into TOMCAT_HOME/lib (org.kie:kie-tomcat-integration)
           2b. Copy "JACC" JAR into TOMCAT_HOME/lib (javax.security.jacc:artifactId=javax.security.jacc-api in JBoss Maven Repository)
           2c. Copy "slf4j-api" JAR into TOMCAT_HOME/lib (org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
           2d. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host element as last valve definition:

                  

           2e. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users, make sure there will be 'analyst' or 'admin' roles defined as it's required to be authorized to use kie-wb

  
  
  

3、安裝配置Maven

    #vi /etc/profile

    ......
    JAVA_HOME=/usr/local/java
    JRE_HOME=$JAVA_HOME/jre
    M2_HOME=/data/wangxh/maven
    PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$M2_HOME/bin:$PATH

    #source /etc/profile

4、啟動(dòng)Tomcat可正常啟動(dòng),訪(fǎng)問(wèn):http://10.10.76.174:8090/kiewb可到登錄頁(yè)

        Drools Workbench 6.5.0.Final環(huán)境部署教程

        使用在tomcat-user.xml中配置的用戶(hù)和密碼kie-wb進(jìn)行登錄,即可進(jìn)入管理頁(yè)面:

       Drools Workbench 6.5.0.Final環(huán)境部署教程

下面便可以進(jìn)行相關(guān)操作了。

感謝各位的閱讀,以上就是“Drools Workbench 6.5.0.Final環(huán)境部署教程”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)Drools Workbench 6.5.0.Final環(huán)境部署教程這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!


當(dāng)前題目:DroolsWorkbench6.5.0.Final環(huán)境部署教程
網(wǎng)頁(yè)鏈接:http://weahome.cn/article/gescsd.html

其他資訊

在線(xiàn)咨詢(xún)

微信咨詢(xún)

電話(huà)咨詢(xún)

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部