Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Drools Workbench 6.5.0.Final Environment deployment tutorial

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "Drools Workbench 6.5.0.Final environment deployment tutorial", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "Drools Workbench 6.5.0.Final environment deployment tutorial"!

The construction of this environment is only for learning, not for the online environment.

0. Environment

Tomcat7+

Jdk1.5+

Maven

Linux system

1. Download

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

Download the Tomcat7 WAR package of Drools Workbench, and download the file: kie-server-distribution-6.5.0.Final.zip

After decompression, you can get three files. Select kie-drools-wb-6.5.0.Final-tomcat7.war.

2. Rename the extracted kie-drools-wb-6.5.0.Final-tomcat7.war in (1) to kiewb.war, and put it in the tomcat/webapps/ directory. If you start tomcat, you will get an error. At this time, you need to refer to the extracted README.txt file of war.

2.1 Install bitronix transaction manager into your tomcat 7

-copy following libs into TOMCAT_HOME/lib

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-node0bitronix.tm.journal.disk.logPart1Filename=$ {btm.root} / work/btm1.tlogbitronix.tm.journal.disk.logPart2Filename=$ {btm.root} / work/btm2.tlogbitronix.tm.resource.configuration=$ {btm.root} / conf/resources.properties

* resources.properties

Resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSourceresource.ds1.uniqueName=jdbc/jbpmresource.ds1.minPoolSize=10resource.ds1.maxPoolSize=20resource.ds1.driverProperties.driverClassName=org.h3.Driverresource.ds1.driverProperties.url=jdbc:h3:file:~/jbpmresource.ds1.driverProperties.user=saresource.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" (* Note: the red configuration is not found in the README.txt file However, if you start according to the README.txt configuration, you will still get an error)

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. Install and configure 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. Start Tomcat to start normally. Visit: http://10.10.76.174:8090/kiewb can go to the login page

Log in with the user and password kie-wb configured in tomcat-user.xml to go to the administration page:

Now you can do something about it.

Thank you for reading, the above is the content of the "Drools Workbench 6.5.0.Final Environment deployment tutorial". After the study of this article, I believe you have a deeper understanding of the Drools Workbench 6.5.0.Final environment deployment tutorial, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report