KIE WB Distribution :: Setup Example – WildFly 10

 

Requirements:
  • java 1.8
  • wildfly-10.0.0.Final
  • kie-server-6.5.0.Final-ee7.war (how to build: see post “KIE Execution Server – Source Downloading and Building”)
  • kie-wb-distribution-wars-6.5.0.Final-wildfly10.war
Unzip: wildfly-10.0.0.Final.
Copy:
kie-server-6.5.0.Final-ee7.war and kie-wb-distribution-wars-6.5.0.Final-wildfly10.war
to:
wildfly-10.0.0.Final/standalone/deployments.
Do:
./standalone.sh -c standalone-full.xml
After a while:
kw-01-01
Check:
http://localhost:8080/kie-wb-distribution-wars-6.5.0.Final-wildfly10/kie-wb.jsp
kw-01-02
Create users:
management:
./add-user.sh -m -u kieserver -p kieserver -ro admin,kie-server,rest-all
application:
./add-user.sh -a -u zibi -p zibi -ro admin,kie-server,rest-all
In case of Metadata space problem:
change:
JAVA_OPTS=”-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true”
to:
JAVA_OPTS=”-Xms64m -Xmx2G -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=2G -Djava.net.preferIPv4Stack=true”
in standalone.conf.

Changing database

Default setup uses h2. Instead h2 we use PostgreSQL.
Explode kie-wb-distribution-wars-6.5.0.Final-wildfly10.war:
  • In deployments unpack kie-wb-distribution-wars-6.5.0.Final-wildfly10.war
  • Rename directory kie-wb-distribution-wars-6.5.0.Final-wildfly10 to kie-wb-distribution-wars-6.5.0.Final-wildfly10.war
  • touch kie-wb-distribution-wars-6.5.0.Final-wildfly10.war.dodeploy
Configure PostgreSQL
1. Add module
kw-01-add-module
module.xml

2. Modify persistence.xml (wildfly-10.0.0.Final/standalone/deployments/kie-wb-distribution-wars-6.5.0.Final-wildfly10.war/WEB-INF/classes/META-INF)

3. Modify:
standalone.xml and standalone-full.xml
Add data-source for PostgreSQL

4. Create database test with user jbpm/jbpm

 

Leave a Reply