Need software:
JBPM2 http://www.jbpm.org
Tomcat-5.0.30 http://www.apache.org
mysql-4.1 http://www.mysql.org
mysql-conn http://www.mysql.org
ANT-1.6 http://www.apache.org
J2SDK1.4.2
First, install mysql
1, decompress mySQL to C disk mysql directory
2. Modify the root password
C: / mysql / bin / mysqladmin -u root password "newpassword"
3, run mysql (c: / mysql / bin / mysqladmin)
4, create a JBPM2 database
Mysql -u root -p
CREATE DATABASE JBPM2
Second, install ANT
Unzip ANT * .ZIP to the C disk ANT directory
Third, unzip the JBPM to C disk JBPM directory
Fourth, unzip the JAR file in mysql-conn to the C: / JBPM / LIB / Hibernate directory
5. Decompose the Tomcat to the C-Tomcat directory, increase the system variable Catalina_Home = C: / Tomcat
6. Install J2SDK1.4.2, and increase system variables Java_HOME
Seven, JBPM modification
1, add JDBC Driver in [JBPM_HOME] /. ClassPath file
2, modify [JBPM_HOME] / Web / src / jbpm.war / web-inf / class / jbpm.properties
# In this file, you can overwrite the default jbpm configuration property. # See the javadocs of org.jbpm.jbpmconfiguration for more information about # configuring jbpm.
### jbpm configs ################################# jbpm.log. stdout = OFF
### Hibernate configs ################################## Hibernate.DiaLect = net.sf.hibernate.dialect.MySQLDialecthibernate.connection.driver_class = com.mysql.jdbc.Driverhibernate.connection.username = roothibernate.connection.password = NewPasshibernate.connection.url = jdbc: mysql: // localhost / jbpm2 useUnicode =? True & Characterencoding = UTF-8Hibernate.c3p0.min_size = 2Hibernate.c3p0.max_size = 2Hibernate.c3p0.timeout = 120Hibernate.c3p0.max_statements = 50
3, modify C: /jbpm/core/src/java/org/jbpm/model/definition/impl/deLegationImpl.hbm.xml
Original:
Original:
5. Change the code code code of Core / SRC / Java / ORG / JBPM / PERSISTENCE / Hibernate / HibernateSession.java "Select D from D from Class" "org.jbpm.model.definition.impl.definitionImpl" "Where d.name =? Order by D.Version DESC";
Eight, system compilation
1. Perform C: / Ant / Bin / Ant 2 in the C: / JBPM directory, modify C: /JBPM/BUILD.XML:
Nine, deploy to Tomcat
1, copy [jbpm_home] /web/target/jbpm.war to [Tomcat_Home] / WebApps2, copy commit-digester.jar, commons-fileupload.jar, jakarta-orom.jar, file to [Tomcat_Home] / WebApps / JBPM / Web-inf / lib directory (command-digester.jar, commons-fileupload.jar In Tomcat's lib directory, jakarta-oro.jar needs to download struts on Apache website, unzipped)
Ten, open the browser input address http: // localhost: 8080 / jbpm