Jbpm6.2 installer uses mysql,
Required environments: JDK1.6 + and Ant1.7 + the following are the experimental environments: JDK1.8.0 _ 51 and Ant1.9.6.
1. unzip instroller-full: jbpm-6.2.0.Final-installer-full \ jbpm-installer2. copy eclipse-java-kepler-sr2-win32.zip to the directory lib: jbpm-6.2.0.Final-installer-full \ jbpm-installer \ lib -- this file does not exist by default. If this file is not copied, it will be automatically downloaded during subsequent running, and it can be copied. 3. copy the mysql-connector-java-5.1.18.jar to the driver of the jbpm-6.2.0.Final-installer-full \ jbpm-installer \ db -- do not copy will automatically download 4. jbpm-6.2.0.Final-installer-full \ jbpm-installer \ db \ jbpm-persistence-JPA2.xml modify <property name = "hibernate. dialect "value =" org. hibernate. dialect. h2Dialect "/>
Replace
<Property name = "hibernate. dialect" value = "org. hibernate. dialect. MySQLDialect"/>
5. Modify "-Dorg. kie. demo = true" in build. xml to "-Dorg. kie. demo = false6. build. properties ".
# default is H2
# H2.version=1.3.168
# db.name=h2
# db.driver.jar.name=${db.name}.jar
# db.driver.download.url=http://repo1.maven.org/maven2/com/h2database/h2/${H2.version}/h2-${H2.version}.jar
#mysql
db.name=mysql
db.driver.module.prefix=com/mysql
db.driver.jar.name=mysql-connector-java-5.1.18.jar
db.driver.download.url=https://repository.jboss.org/nexus/service/local/repositories/central/content/mysql/mysql-connector-java/5.1.18/mysql-connector-java-5.1.18.jar
7. jbpm-6.2.0.Final-installer-full \ jbpm-installer \ db \ mysql_module.xml modify resource-root path = "mysql-connector-java.jar"/>
Is
Resource-root path = "mysql-connector-java-5.1.18.jar"/>
Jbpm-6.2.0.Final-installer-full \ jbpm-installer \
Standalone-full-wildfly-8.1.0.Final.xml
8.1 Add the following content
<datasource jta="true" jndi-name="java:jboss/datasources/jbpmDS" pool-name="H2DS" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:h2:tcp://localhost/~/jbpm-db;MVCC=TRUE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
</security>
</datasource>
Change
<datasource jta="true" jndi-name="java:jboss/datasources/jbpmDS" pool-name="MySQLDS" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/jbpm</connection-url>
<driver>mysql</driver>
<security>
<user-name>jbpm</user-name>
<password>jbpm</password>
</security>
</datasource>
8.2 In the following position
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
Join
<driver name="mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
9. jbpm-6.2.0.Final-installer-full \ jbpm-installer \ standalone-wildfly-8.1.0.Final.xml repeat 8.1 and 8.2 in this file
10. jbpm-6.2.0.Final-installer-full \ jbpm-installer \ build. xml remove the start or stop h2 content below
<!-- Start Demo -->
<target name="start.demo" depends="start.h2,start.jboss,start.eclipse" />
<!-- Start Demo (Eclipse) -->
<target name="start.demo.eclipse" depends="start.h2,start.eclipse" />
<!-- Start Demo (No Eclipse)-->
<target name="start.demo.noeclipse" depends="start.h2,start.jboss" />
<!-- Stop Demo -->
<target name="stop.demo" depends="stop.h2,stop.jboss" />
<target name="stop.demo.eclipse" depends="stop.h2" />
Result
<!-- Start Demo -->
<target name="start.demo" depends="start.jboss,start.eclipse" />
<!-- Start Demo (Eclipse) -->
<target name="start.demo.eclipse" depends="start.eclipse" />
<!-- Start Demo (No Eclipse)-->
<target name="start.demo.noeclipse" depends="start.jboss" />
<!-- Stop Demo -->
<target name="stop.demo" depends="stop.jboss" />
<target name="stop.demo.eclipse" depends="" />
11. cmd -- cd jbpm-6.2.0.Final-installer-full \ jbpm-installer ant install. demo
12. Set jboss_home jbpm-6.2.0.Final-installer-full \ jbpm-installer \ wildfly-8.1.0.Final
13. ant start. demo
Reference link 1. jbpm6.2 installer official address http://sourceforge.net/projects/jbpm/files/jBPM%206/jbpm-6.2.0.Final/2. Official installation instructions address http://docs.jboss.org/jbpm/v6.2/userguide/jBPMInstaller.html
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.