Installing JBoss jBPM 3.2.2 on Apache Tomcat 5.5 and MySQL
2011-02-24 16:15
489 查看
Create schema and table in database
In this example a schema 'jbpm' with a user 'jboss' is used.
Generate all jBPM tables using the script jbpm.jpdl.mysql.sql. If you want your users/roles information (the identity components) also from the MySQL db, use the second sql script attached here mysql.identity.script.jbpm321.sql to set up the necessary tables and fill them with the demo values.
Prepare your jBPM archive
Open a console in jbpm-jpdl-3.2.2/deploy and run:
This builds a jbpm-console.war in jbpm-jpdl-3.2.2/deploy/customized
Unzip this file and change jbpm-console/WEB-INF/classes/hibernate.cfg.xml to reflect the following changes:
Note that the following line is commented:
Extract el-api.jar and el-ri.jar from the original war file (jbpm-console.war/WEB-INF/lib) to jbpm-console/WEB-INF/lib
Copy jboss-j2ee.jar and commons-collections.jar to jbpm-console/WEB-INF/lib. You can find these files in jbpm-jpdl-3.2.2/server/server/jbpm/lib
Download mysql jdbc driver from MySQL Home Page and move it to $TOMCAT_HOME/common/lib
Zip jbpm-console to a war file and move it to $TOMCAT_HOME/webapps
[b]Setup a JDBC Realm in Tomcat
[/b]Create a file jbpm-console.xml in /$CATALINA_HOME/conf/Catalina/localhost similar to
Now you should be able to run jBPM default web app in Tomcat.
In this example a schema 'jbpm' with a user 'jboss' is used.
Generate all jBPM tables using the script jbpm.jpdl.mysql.sql. If you want your users/roles information (the identity components) also from the MySQL db, use the second sql script attached here mysql.identity.script.jbpm321.sql to set up the necessary tables and fill them with the demo values.
Prepare your jBPM archive
Open a console in jbpm-jpdl-3.2.2/deploy and run:
ant customize.console.for.tomcat
This builds a jbpm-console.war in jbpm-jpdl-3.2.2/deploy/customized
Unzip this file and change jbpm-console/WEB-INF/classes/hibernate.cfg.xml to reflect the following changes:
<hibernate-configuration> <session-factory> <!-- hibernate dialect --> <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property> <!-- JDBC connection properties (begin) --> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpm</property> <property name="hibernate.connection.username">jboss</property> <property name="hibernate.connection.password">jboss</property> <!-- JDBC connection properties (end) --> <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property> <!-- DataSource properties (begin) == <property name="hibernate.connection.datasource">java:/JbpmDS</property> == DataSource properties (end) --> <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> ...
Note that the following line is commented:
<property name="hibernate.connection.datasource">java:/JbpmDS</property>
Extract el-api.jar and el-ri.jar from the original war file (jbpm-console.war/WEB-INF/lib) to jbpm-console/WEB-INF/lib
Copy jboss-j2ee.jar and commons-collections.jar to jbpm-console/WEB-INF/lib. You can find these files in jbpm-jpdl-3.2.2/server/server/jbpm/lib
Download mysql jdbc driver from MySQL Home Page and move it to $TOMCAT_HOME/common/lib
Zip jbpm-console to a war file and move it to $TOMCAT_HOME/webapps
[b]Setup a JDBC Realm in Tomcat
[/b]Create a file jbpm-console.xml in /$CATALINA_HOME/conf/Catalina/localhost similar to
<Context> <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/jbpm" connectionName="jboss" connectionPassword="jboss" userTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g" userNameCol="g.TYPE_ = 'security-role' AND m.GROUP_ = g.ID_ AND m.USER_ = u.ID_ AND u.NAME_" userCredCol="DISTINCT u.PASSWORD_" userRoleTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g" roleNameCol="g.NAME_" /> </Context>
Now you should be able to run jBPM default web app in Tomcat.
相关文章推荐
- Installing Apache Tomcat 5.5/6/7 with a multi-instance layout on Linux
- Installing Apache, PHP, and MySQL on Fedora Core
- Simple Tutorial for installing Apache, PHP, MySQL and phpMyAdmin on Ubuntu
- Installing Apache, PHP, and MySQL on Mac OS X
- How to Install Apache, MySQL, PHP, and phpMyAdmin on FreeBSD
- how to install apache, PHP and MySQL on Linux 2
- How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
- How to Configure Tomcat/JBoss and Apache HTTPD for Load Balancing and Failover
- Ubuntu_Installing Apache2 With PHP5 And MySQL Support On Ubuntu 12.04 LTS (LAMP)
- Install and config Apache, PHP, MySql on windows XP
- how to install apache, PHP and MySQL on Linux 3
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- How To Install an Apache, MySQL, and PHP (FAMP) Stack on FreeBSD 10.1
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- JBoss jBPM安装配置(Tomcat 6.0+MySQL 5.1)
- Setup Apache, PHP, MySQL and WordPress on Mac OS X 10.8.3
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- aliyun CentOS 7 install software jdk mysql tomcat zentao and so on
- Step-by-Step:Installation and Configuration of a secure web application using MySQL,OpenSA Web Server, Tomcat and OpenSSL,on a N
- MaxClients in Apache and its effect on Tomcat during Full GC