syndicated from http://mswiderski.blogspot.co.uk/2015/10/installing-kie-server-and-workbench-on.html
----
A common requirement for installation on development machine is to run both KIE Workbench and KIE Server on same server to simplify execution environment and avoid any port offset configuration.
This article will explain all installation steps needed to make this happen on two most frequently used containers:
----
A common requirement for installation on development machine is to run both KIE Workbench and KIE Server on same server to simplify execution environment and avoid any port offset configuration.
This article will explain all installation steps needed to make this happen on two most frequently used containers:
- Wildfly 8.2.0.Final
- Apache Tomcat 8
Download binaries
So let's get our hands dirty and play around with some installation steps. First make sure you download correct versions of workbench and KIE Server for the container you target.
Wildfly
Tomcat
Wildfly
Deploy applications
Copy downloaded files into WILDFLY_HOME/standalone/deployments, while copying rename them to simplify the context paths that will be used on application server:
- rename kie-wb-distribution-wars-6.3.0.Final-wildfly8.war to kie-wb.war
- rename kie-server-6.3.0.Final-ee7.war to kie-server.war
Configure your server
With Wildfly there is not much to setup as both transaction manager and persistence (including data source) is already preconfigured.
Configure users
- create user in application realm
- name: kieserver
- password: kieserver1!
- roles: kie-server
- create user in application realm to logon to workbench
- name: workbench
- password: workbench!
- roles: admin, kie-server
Configure system properties
Following list of properties needs to be given to work smoothly for both workbench and KIE Server:
- -Dorg.kie.server.id=wildfly-kieserver
- -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server
- -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller
Launching the server
best way is to add system properties into startup command when launching Wildfly server. Go to WILDFLY_HOME/bin and issue following command:
./standalone.sh --server-config=standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller
Tomcat
Deploy applications
Copy downloaded files into TOMCAT_HOME/webapps, while copying rename them to simplify the context paths that will be used on application server:
- rename kie-wb-distribution-wars-6.3.0.Final-tomcat7.war to kie-wb.war
- rename kie-server-6.3.0.Final-webc.war to kie-server.war
Configure your server
- Copy following libraries into TOMCAT_HOME/lib
- btm-2.1.4
- btm-tomcat55-lifecycle-2.1.4
- h2-1.3.161
- jacc-1.0
- jta-1.1
- kie-tomcat-integration-6.3.0.Final
- slf4j-api-1.7.2
- slf4j-api-1.7.2
- Create Bitronix configuration files to enable JTA transaction manager
- Create file 'btm-config.properties' under TOMCAT_HOME/conf with following content
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
- Create file 'resources.properties' under TOMCAT_HOME/conf with following content
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.h2.Driver
resource.ds1.driverProperties.url=jdbc:h2:mem:jbpm
resource.ds1.driverProperties.user=sa
resource.ds1.driverProperties.password=
resource.ds1.allowLocalTransactions=true
Configure users
Create following users in tomcat-users.xml under TOMCAT_HOME/conf
- create user
- name: kieserver
- password: kieserver1!
- roles: kie-server
- create user to logon to workbench
- name: workbench
- password: workbench!
- roles: admin, kid-server
1
2
3
4
5
6
7
8
9
|
|
Configure system properties
Configure following system properties in file setenv.sh under TOMCAT_HOME/bin
-Dbtm.root=$CATALINA_HOME
-Dorg.jbpm.cdi.bm=java:comp/env/BeanManager
-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/kie-wb/WEB-INF/classes/login.config
-Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm
-Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform
-Dorg.kie.server.id=tomcat-kieserver
-Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server
-Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller
NOTE: Simple copy this into setenv.sh files to properly setup KIE Server and Workbench on Tomcat:
CATALINA_OPTS="-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=$CATALINA_HOME -Dorg.jbpm.cdi.bm=java:comp/env/BeanManager -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/kie-wb/WEB-INF/classes/login.config -Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm -Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform -Dorg.kie.server.id=tomcat-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller"
Launching the server
Go to TOMCAT_HOME/bin and issue following command:
./startup.sh
Going beyond default setup
Disabling KIE Server extensions
And that's all to do to setup both KIE Server and Workbench on single server instance (either Wildfly or Tomcat). This article focused on fully featured KIE server installation meaning both BRM (rules) and BPM (processes, tasks) capabilities. Although KIE Server can be configured to serve only subset of the capabilities - e.g. only BRM or only BPM.
To do so one can configure KIE Server with system properties to disable extensions (BRM or BPM)
Wildfly:
add following system property to startup command:
- disable BRM: -Dorg.drools.server.ext.disabled=true
- disable BPM: -Dorg.jbpm.server.ext.disabled=true
./standalone.sh --server-config=standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller -Dorg.jbpm.server.ext.disabled=true
add following system property to setenv.sh script (must be still part of CATALINA_OPTS configuration):
- disable BRM: -Dorg.drools.server.ext.disabled=true
- disable BPM: -Dorg.jbpm.server.ext.disabled=true
CATALINA_OPTS="-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=$CATALINA_HOME -Dorg.jbpm.cdi.bm=java:comp/env/BeanManager -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/kie-wb/WEB-INF/classes/login.config -Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm -Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform -Dorg.kie.server.id=tomcat-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller -Dorg.jbpm.server.ext.disabled=true"
Changing data base and persistence settings
Since by default persistence uses just in memory data base (H2) it is good enough for first tryouts or demos but not for real usage. So to be able to change persistence settings following needs to be done:
KIE Workbench on Wildfly
Modify data source configuration in Wildfly - either via manual editing of standalone-full.xml file or using tools such as Wildfly CLI. See Wildfly documentation on how to define data sources.
- Next modify persistence.xml that resides inside workbench war file. Extract the kie-wb.war file into directory with same name and in same location (WILDFLY_HOME/standalone/deployments).
- Then navigate to kie-wb.war/WEB-INF/classes/META-INF
- Edit persistence.xml file and change following elements
- jta-data-source to point to the newly created data source (JNDI name) for your data base
- hibernate.dialect to hibernate supported dialect name for you data base
KIE Server on Wildfly
there is no need to do any changes to the application (the war file) as the persistence can be reconfigured via system properties. Set following system properties at the end of server startup command
- -Dorg.kie.server.persistence.ds=java:jboss/datasources/jbpmDS
- -Dorg.kie.server.persistence.dialect=org.hibernate.dialect.MySQL5Dialect
Full command to start server will be:
./standalone.sh --server-config=standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller -Dorg.kie.server.persistence.ds=java:jboss/datasources/jbpmDS
-Dorg.kie.server.persistence.dialect=org.hibernate.dialect.MySQL5Dialect
KIE Workbench on Tomcat
To modify data source configuration in Tomcat you need to alter resources.properties (inside TOMCAT_HOME/conf) file that defines data base connection. For MySQL it could look like this:
resource.ds1.className=com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
resource.ds1.uniqueName=jdbc/jbpmDS
resource.ds1.minPoolSize=0
resource.ds1.maxPoolSize=10
resource.ds1.driverProperties.user=guest
resource.ds1.driverProperties.password=guest
resource.ds1.driverProperties.URL=jdbc:mysql://localhost:3306/jbpm
resource.ds1.allowLocalTransactions=true
Make sure you're copy mysql JDBC driver into TOMCAT_HOME/lib otherwise it won't provide proper connection handling.
- Next modify persistence.xml that resides inside workbench war file. Extract the kie-wb.war file into directory with same name and in same location (TOMCAT_HOME/webapps).
- Then navigate to kie-wb.war/WEB-INF/classes/META-INF
- Edit persistence.xml file and change following elements
- jta-data-source to point to the newly created data source (JNDI name) for your data base
- hibernate.dialect to hibernate supported dialect name for you data base
KIE Server on Tomcat
there is no need to do any changes to the application (the war file) as the persistence can be reconfigured via system properties. Set or modify (as data source is already defined there) following system properties in setenv.sh script inside TOMCAT_HOME/bin
- -Dorg.kie.server.persistence.ds=java:comp/env/jdbc//jbpmDS
- -Dorg.kie.server.persistence.dialect=org.hibernate.dialect.MySQL5Dialect
CATALINA_OPTS="-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=$CATALINA_HOME -Dorg.jbpm.cdi.bm=java:comp/env/BeanManager -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/kie-wb/WEB-INF/classes/login.config -Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpmDS -Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform
-Dorg.kie.server.persistence.dialect=org.hibernate.dialect.MySQL5Dialect
-Dorg.kie.server.id=tomcat-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller"
And that would be it. Hopefully this article will help with installation of KIE Workbench and Server on single application server.
Have fun and comments more than welcome.

Such a wonderful article! I learned more info to your post and It's attractive to me. Surely I will share with my friends and Keep it up a great job!
ReplyDeleteTableau Training in Chennai
Tableau Course in Chennai
Tableau Training Institutes in Chennai
Pega Training in Chennai
Primavera Training in Chennai
Unix Training in Chennai
Tableau Training in Chennai
Tableau Course in Chennai
Big data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. big data projects for students But it’s not the amount of data that’s important.Project Center in Chennai
DeleteSpring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Corporate TRaining Spring Framework the authors explore the idea of using Java in Big Data platforms.
Spring Training in Chennai
The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
I would definitely thank the admin of this blog for sharing this information with us. Waiting for more updates from this blog admin.
ReplyDeleteweb designing training in chennai
web designing course
ccna Training in Chennai
PHP Training in Chennai
ReactJS Training in Chennai
Web Designing Course in chennai
Web designing training in chennai
I read this blog. this was really helpful to me. Thanks to the admin for sharing this awesome information with us.
ReplyDeleteSpoken English Classes in Chennai
Spoken English Class in Chennai
Spoken English in Chennai
Best Spoken English Classes in Chennai
Best Spoken English Institute in Chennai
IELTS Coaching in Chennai
English Speaking Classes in Mumbai
Spoken English Classes in Anna Nagar
Spoken English Classes in Chennai Anna Nagar
IELTS Classes in Mumbai
Very good information provided, Thanks a lot for sharing such useful information.
ReplyDeleteAviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
best aviation academy in Chennai
air hostess academy in Chennai
Airline Courses in Chennai
airport ground staff training in Chennai
A committed server is a solitary PC on a web-facilitating system that is rented or leased, and devoted to only one client. A specialist organization screens the PC's equipment, arrange network, and directing hardware, while the client by and large controls and keeps up the server programming. buy vps with perfect money
ReplyDeleteA committing server enables a customer to lease physical server space from a facilitating administrations supplier and have total access and authority over assets offered by the physical server without imparting space to different clients as in shared facilitating. Click Here
ReplyDeleteAwesome post. Thank you so much.
ReplyDeleteecommerce website development company in chennai
Great blog!!!
ReplyDeletei really impressed with their content, that is very brilliant blog.
web design training programs
php institute in chennai
magento course in chennai
ReplyDeleteThere are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment?s pleasure, for the rest of their lives.
https://lifdo.yolasite.com
Good information and, keep sharing like this.
ReplyDeleteCrm Software Development Company in Chennai
Crm Software Development Company Chennai
Crm Software Development Company
thank you for sharing this useful information
ReplyDeletephp training in chennai
Nice post, you provided a valuable information, keep going.
ReplyDeletePrestashop ecommerce development company chennai
Prestashop ecommerce development company in chennai
Prestashop ecommerce development company
Prestashop ecommerce development company in india
I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
ReplyDeleteweb designer courses in chennai | best institute for web designing Classes in Chennai
web designing courses in chennai | web designing institute in chennai | web designing training institute in chennai
web designing training in chennai | web design and development institute
web designing classes in Chennai | web designer course in Chennai
web designingtraining course in chennai with placement | web designing and development Training course in chennai
Web Designing Institute in Chennai | Web Designing Training in Chennai
website design course | Web designing course in Chennai
Thanks for sharing an informative blog keep rocking bring more details.I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
ReplyDeletemobile application development course | mobile app development training | mobile application development training online
"web designing classes in chennai | Web Designing courses in Chennai "
Web Designing Training and Placement | Best Institute for Web Designing
Web Designing and Development Course | Web Designing Training in Chennai
mobile application development course | mobile app development training
mobile application development training online | mobile app development course
mobile application development course | learn mobile application development
app development training | mobile application development training
mobile app development course online | online mobile application development
Wow, Great information and this is very useful for us.
ReplyDeleteprofessional bridal makeup artist in chennai
best bridal makeup artist in chennai
awesome blog it's very nice and useful i got many more information it's really nice i like your blog styleweb design company in velachery
ReplyDelete
ReplyDeleteGreat information and this is very useful for us.
post free classified ads in india
ReplyDeleteNice information Keep going
vito food oil dealers in chennai
freezer with plastic body dealers in chennai
ReplyDeletevery useful information for us.
best cafe in chennai
ReplyDeleteGood information
security agency in chennai
best security service in chennai
Thanks for sharing information. Choosing computer accessories from leading IT store offer great discount and value for your money Computer Store Australia | All in One Pc Australia
ReplyDeletenice website, thanks for sharing the more useful importance to use, branding companies in chennai
ReplyDeleteThe article unambiguously indicated every one of the positive and negative sides of the issue I'm exceptionally bewildered with the nature top 10 branding companies in chennai of the substance which you have written down. This is a marvelous article! Your article has all the essential data on the individual theme branding companies in chennai
ReplyDeleteDecent article, thankful for more information Activated carbon manufacturers in tamilnadu The information you gave about has been valuable while analyzing the subject.Activated carbon manufacturing companies in India
ReplyDeleteExtraordinary Blog...The information you shared is amazingly, It is all around wrote and simple to undertand and social media marketing agency in chennai you have good thoughts to share something like this a debt of gratitude is in order for share this information.
ReplyDeleteLearned a lot of new things in this post. Thanks for taking the time to share this blog..
ReplyDeletecloud computing skills
scope of automation
google digital marketing certification
technical skills required for cloud computing
node js questions and answers
Really appreciate this wonderful post that you have provided for us. Great site and a great topic as well i really get amazed to read this. Top 10 Makeup Artists in Kolkata
ReplyDelete