Copy the saw-impl-jbpm.jar file from <Web Space Server install dir>\glassfish2\domains\domain1\applications\j2ee-modules\saw-web\WEB-INF\lib.
Paste the saw-impl-jbpm.jar file to a temp folder.
Extract the saw-impl-jbpm.jar file.
unjar saw-impl-jbpm.jar
Remove the commenting for the following section in the hibernate-cfg.xml file and change the appropriate values to point to the MySQL database.
<!-- JDBC connection properties (begin) --> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/lportal</property> <property name="hibernate.connection.username">lportal</property> <property name="hibernate.connection.password">lportal</property> <!-- JDBC connection properties (end) -->
jar the saw-impl-jbpm.jar file again.
Create a directory structure sources/saw-web-5.2.0.1/WEB-INF/lib/ under <root-dir>/webspace-for-gfv2/var/webspace/war-workspace, and paste the saw-impl-jbpm.jar file into it.
Change directory to <root-dir>/webspace-for-gfv2/var/webspace/war-workspace.
cd <root-dir>/webspace-for-gfv2/var/webspace/war-workspace
Run ant -f synchronize.xml for saw-web-5.2.0.1.
Restart GlassFish server.