8 Replies Latest reply on Jul 19, 2008 5:04 PM by Ronald van Kuijk

    Deploy the jBPM 3.2.3 JBoss 4.2 / 4.3

    Ehsan Zanjani Newbie

      hi
      If you want to deploy jbpm 3.2.x or higher under jboss 4.x you must follow these steps:
      Step 1 :

      Extract jbpm-console.war

      tar -xvf jbpm-console.war
      -->META-INF WEB-INF images index.jsp sa ua


      Remove this jar file from WEB-INF/lib/ :
      
      - commons-fileupload.jar
      - jbpm-identity.jar
      - jbpm-jpdl.jar
      


      Just you must have these jar file in WEB-INF/lib/ :

      commons-io.jar gravel.jar jbpm4jsf.jar jsf-facelets.jar


      Create war file :

      zip -r jbpm-console.war *


      step 2 :
      add this XML block to the conf/login-config.xml file under the 4.2 / 4.3 installation:
       <application-policy name = "jbpm">
       <authentication>
       <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
       flag="required">
       <module-option name="dsJndiName">java:/JbpmDS</module-option>
       <module-option name="principalsQuery">
       SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=?
       </module-option>
       <module-option name="rolesQuery">
       SELECT g.NAME_ ,'Roles'
       FROM JBPM_ID_USER u,
       JBPM_ID_MEMBERSHIP m,
       JBPM_ID_GROUP g
       WHERE g.TYPE_='security-role'
       AND m.GROUP_ = g.ID_
       AND m.USER_ = u.ID_
       AND u.NAME_=?
       </module-option>
       </login-module>
       </authentication>
       </application-policy>
      


      Database configuration
      If you are using hypersonic as in the suite:
      * copy over the jbpm-ds.xml file from the 3.2 JBPM installation to the 4.2 environment (found under the jbpm/deploy directory).
      * Copy the jbpm/data/hypersonic/jbpm* from the 3.2 installation to the 4.2 default/data/hypersonic/ directory.
      from wiki page :
      http://wiki.jboss.org/wiki/DeployJbpm3.2WebAppUnderJBoss4.2.x

      ok. when you complete these steps you must follow this step for JTA UserTransaction :

      add this line to hibernate.cfg.xml :

      <property name="jta.UserTransaction">UserTransaction</property>