[jboss-user] [jBPM] - Re: Deploying jBPM 5.1 on jBoss 6

Chaitanya Desai do-not-reply at jboss.com
Thu Jul 28 18:20:34 EDT 2011


Chaitanya Desai [http://community.jboss.org/people/chaitanya1987] created the discussion

"Re: Deploying jBPM 5.1 on jBoss 6"

To view the discussion, visit: http://community.jboss.org/message/618243#618243

--------------------------------------------------------------
  Was able to get it working by removing certain jars from the .war files :
(Placing extracts from build.xml used)

 http://blog.athico.com/2011/05/guvnor-wars-per-application-server.html http://blog.athico.com/2011/05/guvnor-wars-per-application-server.html


<target name="install.jBPM-gwt-console.into.jboss1" depends="download.h2,download.birt,download.jBPM.gwt-console">
    <!-- gwt-console -->
    <mkdir dir="${install.home}/target"/>
    <unzip src="${install.home}/lib/jbpm-${jBPM.version}-gwt-console.zip" dest="${install.home}/target" />
    <mkdir dir="${install.home}/target/jbpm-gwt-console-server-war"/>
    <unzip src="${install.home}/target/jbpm-gwt-console-server-${jBPM.version}.war"
           dest="${install.home}/target/jbpm-gwt-console-server-war"/>
    <copy file="${install.home}/db/hibernate.cfg.xml"
          tofile="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/classes/hibernate.cfg.xml"
          overwrite="true" />
    <copy file="${install.home}/db/persistence.xml"
          tofile="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/classes/META-INF/persistence.xml"
          overwrite="true" />
    <!-- Fix for conflicting javassist jar -->
          <echo message="Deleting conflicting jars from jbpm-gwt-console-server-war"/>
    <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/javassist-3.6.0.GA.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/jaxrs-api-1.0.2.GA.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/el-api.jar"/> 
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-api-1.6.0.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf-log4j12-1.6.0.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-api-1.5.2.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-log4j12-1.5.2.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/slf4j-simple-1.5.2.jar"/>
<!--          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/el-impl-1.0.jar"/> -->
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/javax.jsf_1.2.0.0.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/glassfish.jsf_1.2.3.2.jar"/>
          <delete file="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib/glassfish.jstl_1.2.0.1.jar"/>

    <!-- Other configuration like work item handlers -->
    <copy todir="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/classes" overwrite="true">
      <fileset dir="${install.home}/conf"/>
    </copy>
    <zip basedir="${install.home}/target/jbpm-gwt-console-server-war"
         destfile="${install.home}/target/jbpm-gwt-console-server-${jBPM.version}.war"/>
    <copy file="${install.home}/target/jbpm-gwt-console-server-${jBPM.version}.war"
          tofile="${jboss.server.deploy.dir}/jbpm-gwt-console-server.war"
          overwrite="true" />
    <copy file="${install.home}/target/jbpm-gwt-console-${jBPM.version}.war"
          tofile="${jboss.server.deploy.dir}/jbpm-gwt-console.war"
          overwrite="true" />
    <delete dir="${install.home}/target"/>
    <!-- db configuration -->
    <copy file="${install.home}/db/testDS1-ds.xml"
          tofile="${jboss.server.deploy.dir}/testDS1-ds.xml"
          overwrite="true" />
    <copy todir="${jboss.server.lib.dir}" overwrite="true">
      <fileset dir="${install.home}/db/driver"/>
    </copy>
    <!-- authentication configuration -->
    <copy file="${install.home}/auth/users.properties"
          tofile="${jboss.server.conf.dir}/users.properties"
          overwrite="true" />
    <copy file="${install.home}/auth/roles.properties"
          tofile="${jboss.server.conf.dir}/roles.properties"
          overwrite="true" />
    <!-- reporting -->
    <antcall target="install.reporting.into.jboss" />
  </target>




  2)

  <target name="install.guvnor.into.jboss.other1">

<mkdir dir="${install.home}/target/drools-guvnor"/>
    <unzip src="${install.home}/lib/guvnor-5.2.0.Final-jboss-as-6.0.war" dest="${install.home}/target/drools-guvnor" />
           <echo message="Removing the unrequired jars from drools-guvnor.war"/>
    <delete>
      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="xml-apis-*.jar"/>                    
                <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="jta-*.jar"/>
                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="slf4j-api-1.6.0.jar"/>
                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="slf4j-log4j12-1.6.0.jar"/>
          <!--            <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="jsf-api-*.jar"/> -->
                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/lib" includes="javassist-*.jar"/>
                      <fileset dir="${install.home}/target/drools-guvnor/WEB-INF/classes/org/drools/guvnor/server/jaxrs" includes="GuvnorApplication.class"/>

    </delete>
    <zip basedir="${install.home}/target/drools-guvnor"
         destfile="${install.home}/target/drools-guvnor.war"/>
    <copy file="${install.home}/target/drools-guvnor.war"
          tofile="${jboss.server.deploy.dir}/drools-guvnor.war"
          overwrite="true" />
    <delete dir="${install.home}/target"/>

  </target>
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/618243#618243]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110728/82c6346d/attachment-0001.html 


More information about the jboss-user mailing list