<!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;">
Re: Deploying jBPM 5.1 on jBoss 6
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/chaitanya1987">Chaitanya Desai</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/618243#618243">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>  Was able to get it working by removing certain jars from the .war files :</p><p>(Placing extracts from build.xml used)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><a class="jive-link-external-small" href="http://blog.athico.com/2011/05/guvnor-wars-per-application-server.html" target="_blank">http://blog.athico.com/2011/05/guvnor-wars-per-application-server.html</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><target name="install.jBPM-gwt-console.into.jboss1" depends="download.h2,download.birt,download.jBPM.gwt-console"></p><p>    <!-- gwt-console --></p><p>    <mkdir dir="${install.home}/target"/></p><p>    <unzip src="${install.home}/lib/jbpm-${jBPM.version}-gwt-console.zip" dest="${install.home}/target" /></p><p>    <mkdir dir="${install.home}/target/jbpm-gwt-console-server-war"/></p><p>    <unzip src="${install.home}/target/jbpm-gwt-console-server-${jBPM.version}.war"</p><p>           dest="${install.home}/target/jbpm-gwt-console-server-war"/></p><p>    <copy file="${install.home}/db/hibernate.cfg.xml"</p><p>          tofile="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/classes/hibernate.cfg.xml"</p><p>          overwrite="true" /></p><p>    <copy file="${install.home}/db/persistence.xml"</p><p>          tofile="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/classes/META-INF/persistence.xml"</p><p>          overwrite="true" /></p><p>    <!-- Fix for conflicting javassist jar --></p><p>          <echo message="Deleting conflicting jars from jbpm-gwt-console-server-war"/></p><p>    <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/javassist-3.6.0.GA.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/jaxrs-api-1.0.2.GA.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/el-api.jar"/> </p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-api-1.6.0.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf-log4j12-1.6.0.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-api-1.5.2.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-log4j12-1.5.2.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-simple-1.5.2.jar"/></p><p><!--          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/el-impl-1.0.jar"/> --></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/javax.jsf_1.2.0.0.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/glassfish.jsf_1.2.3.2.jar"/></p><p>          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/glassfish.jstl_1.2.0.1.jar"/></p><p>  </p><p>    <!-- Other configuration like work item handlers --></p><p>    <copy todir="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/classes" overwrite="true"></p><p>      <fileset dir="${install.home}/conf"/></p><p>    </copy></p><p>    <zip basedir="${install.home}/target/jbpm-gwt-console-server-war"</p><p>         destfile="${install.home}/target/jbpm-gwt-console-server-${jBPM.version}.war"/></p><p>    <copy file="${install.home}/target/jbpm-gwt-console-server-${jBPM.version}.war"</p><p>          tofile="${jboss.server.deploy.dir}/jbpm-gwt-console-server.war"</p><p>          overwrite="true" /></p><p>    <copy file="${install.home}/target/jbpm-gwt-console-${jBPM.version}.war"</p><p>          tofile="${jboss.server.deploy.dir}/jbpm-gwt-console.war"</p><p>          overwrite="true" /></p><p>    <delete dir="${install.home}/target"/></p><p>    <!-- db configuration --></p><p>    <copy file="${install.home}/db/testDS1-ds.xml"</p><p>          tofile="${jboss.server.deploy.dir}/testDS1-ds.xml"</p><p>          overwrite="true" /></p><p>    <copy todir="${jboss.server.lib.dir}" overwrite="true"></p><p>      <fileset dir="${install.home}/db/driver"/></p><p>    </copy></p><p>    <!-- authentication configuration --></p><p>    <copy file="${install.home}/auth/users.properties"</p><p>          tofile="${jboss.server.conf.dir}/users.properties"</p><p>          overwrite="true" /></p><p>    <copy file="${install.home}/auth/roles.properties"</p><p>          tofile="${jboss.server.conf.dir}/roles.properties"</p><p>          overwrite="true" /></p><p>    <!-- reporting --></p><p>    <antcall target="install.reporting.into.jboss" /></p><p>  </target></p><p>  </p><p>  </p><p>  </p><p>  </p><p>  2)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <target name="install.guvnor.into.jboss.other1"></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><mkdir dir="${install.home}/target/drools-guvnor"/></p><p>    <unzip src="${install.home}/lib/guvnor-5.2.0.Final-jboss-as-6.0.war" dest="${install.home}/target/drools-guvnor" /></p><p>           <echo message="Removing the unrequired jars from drools-guvnor.war"/></p><p>    <delete></p><p>      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="xml-apis-*.jar"/>                    </p><p>                <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="jta-*.jar"/></p><p>                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="slf4j-api-1.6.0.jar"/></p><p>                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="slf4j-log4j12-1.6.0.jar"/></p><p>          <!--            <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="jsf-api-*.jar"/> --></p><p>                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="javassist-*.jar"/></p><p>                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/classes/org/drools/guvnor/server/jaxrs" includes="GuvnorApplication.class"/></p><p>                      </p><p>    </delete></p><p>    <zip basedir="${install.home}/target/drools-guvnor"</p><p>         destfile="${install.home}/target/drools-guvnor.war"/></p><p>    <copy file="${install.home}/target/drools-guvnor.war"</p><p>          tofile="${jboss.server.deploy.dir}/drools-guvnor.war"</p><p>          overwrite="true" /></p><p>    <delete dir="${install.home}/target"/></p><p>       </p><p>  </target></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/618243#618243">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>