<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    jBPM5 Console Integration with Tomcat6
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/bpmn2user">bpmn2user</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/578103#578103">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Here are the required steps to get the jBPM5 console running in Tomcat6</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1.)&#160;&#160;&#160; Copy the console war files provided in JBPM_INSTALLER/lib into Tomcat&rsquo;s webapps directory</p><p class="MsoNormal">These war files can also be downloaded from&#160;&#160; (<a class="jive-link-external-small" href="http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-CR1/jbpm-5.0-CR1-gwt-console.zip/download">http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-CR1/jbpm-5.0-CR1-gwt-console.zip/download</a>). This download has two war files jbpm-gwt-console-5.0-CR1.war and jbpm-gwt-console-server-5.0-CR1.war. Rename them to jbpm-console.war and gwt-console-server.war and copy them to TOMCAT_HOME/webapps</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2.)&#160;&#160;&#160; Create users and roles in TOMCAT_HOME/conf/tomcat-users.xml.</p><p class="MsoNormal">Here is an example</p><p class="MsoNormal">&lt;?xml version='1.0' encoding='utf-8'?&gt;</p><p class="MsoNormal">&lt;tomcat-users&gt;</p><p class="MsoNormal">&#160; &lt;role rolename="tomcat"/&gt;</p><p class="MsoNormal">&#160; &lt;role rolename="role1"/&gt;</p><p class="MsoNormal">&#160; &lt;role rolename="manager"/&gt;</p><p class="MsoNormal">&#160; &lt;role rolename="admin"/&gt;</p><p class="MsoNormal">&#160; &lt;role rolename="user"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="both" password="tomcat" roles="tomcat,role1"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="role1" password="tomcat" roles="role1"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="manager" password="manager" roles="manager"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="krisv" password="krisv" roles="manager,admin,user"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="john" password="john" roles="manager,admin,user"/&gt;</p><p class="MsoNormal">&#160; &lt;user username="mary" password="mary" roles="manager,admin,user"/&gt;</p><p class="MsoNormal">&lt;/tomcat-users&gt;</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3.)&#160;&#160;&#160; Set the jbpm.console.directory in Catalina.bat (.sh)</p><p class="MsoNormal">Here is an example.</p><p class="MsoNormal">.. -Djbpm.console.directory=C:/jbpm5/CR1/jbpm-installer/sample/evaluation/src/main/resources ..</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal">4.) Copy JBPM_INSTALLER\jboss-4.2.3.GA server\default\data\birt into TOMCAT_HOME\birt.&#160; This will provide the reporting functionality</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">5.)&#160;&#160;&#160; Copy the database driver (e.g., h2.jar) and all the dependant jar files into TOMCAT_HOME/lib.</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal">Here are the required libraries:</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal">jbpm-persistence-jpa-5.0-CR1.jar</p><p class="MsoNormal">h2-1.2.124.jar</p><p class="MsoNormal">persistence-api-1.0.jar</p><p class="MsoNormal">geronimo-jta_1.0.1B_spec-1.0.1.jar</p><p class="MsoNormal">javassist-3.4.GA.jar</p><p class="MsoNormal">hibernate-entitymanager-3.4.0.GA.jar</p><p class="MsoNormal">hibernate-core-3.3.0.SP1.jar</p><p class="MsoNormal">hibernate-commons-annotations-3.1.0.GA.jar</p><p class="MsoNormal">hibernate-annotations-3.4.0.GA.jar</p><p class="MsoNormal">ejb3-persistence-1.0.2.GA.jar</p><p class="MsoNormal">dom4j-1.6.1.jar</p><p class="MsoNormal">commons-collections-3.1.jar</p><p class="MsoNormal">antlr-2.7.6.jar</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">6.)&#160;&#160;&#160; Start database:</p><p class="MsoNormal">e.g, run &#8216;ant h2.start&rsquo; from JBPM_INSTALLER directory</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">7.)&#160;&#160;&#160; Start human task, e.g., run &#8216;ant start.human.task&rsquo; from JBPM_INSTALLER directory</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal">This assumes that a&#160; datasource&#160; JNDI (jdbc/testDS1) is configured in Tomcat and a transaction manager (such as Bitronix or JOTM or Atomikos etc) is configured on Tomcat.</p><p class="MsoNormal">Refer to <a class="jive-link-external-small" href="http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html">http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html</a> for JNDI configuration on Tomcat6.</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal">Login to console <a class="jive-link-external-small" href="http://localhost:8080/jbpm-console">http://localhost:8080/jbpm-console</a> (krisv/krisv)</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/578103#578103">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>