6 Replies Latest reply on Sep 20, 2013 9:56 PM by Brian Wallis

    jbpm6 in JBoss EAP 6.1

    Brian Wallis Master

      Is there a way to install jBPM 6.0.0.CR2 into JBoss EAP6 as a module that is available to my app when it is deployed? I haven't been able to find how to do this.

       

      Also, I'm having problems with the dependencies I have the following declared

       

      ...
          <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>org.jboss.as</groupId>
                      <artifactId>jboss-as-parent</artifactId>
                      <version>7.2.0.Final-redhat-8</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-bom</artifactId>
                      <type>pom</type>
                      <version>6.0.0.CR2</version>
                      <scope>import</scope>
                  </dependency>
              </dependencies>
          </dependencyManagement>
       ...
              <dependency>
                  <groupId>org.jbpm</groupId>
                  <artifactId>jbpm-bpmn2</artifactId>
              </dependency>
              <dependency>
                  <groupId>org.jbpm</groupId>
                  <artifactId>jbpm-kie-services</artifactId>
              </dependency>
      ...
      

       

      but get some missing dependencies

       

      Could not resolve dependencies for project au.com.infomedix:testejb:ejb:0.0.1-SNAPSHOT:
      The following artifacts could not be resolved:
              com.noelios.restlet:com.noelios.restlet:jar:1.1.10,
              org.restlet:org.restlet:jar:1.1.10,
              org.apache.ant:ant:jar:1.8.3-redhat-1,
              javax.el:el-api:jar:1.2:
      Could not find artifact com.noelios.restlet:com.noelios.restlet:jar:1.1.10 in local-virtual-repo
              (http://im-vm-repository:8090/artifactory/dev-virtual-repo)
      

       

      my local repository is linked back to the jboss EAP repository, jboss central repository and maven central amongst others. It is used extensively for other JBoss projects we develop here. I suspect I am missing a link to some repository that I am unaware of for JBPM 6.

       

      thanks.

        • 1. Re: jbpm6 in JBoss EAP 6.1
          Brian Wallis Master

          The jboss EAP repository I'm pointing to is http://maven.repository.redhat.com/techpreview/all and none of the missing dependencies are in that repository.

          • 2. Re: jbpm6 in JBoss EAP 6.1
            Maciej Swiderski Master

            there is an ongoing process to support jbpm as a JBoss module(s) so stay tuned as it should be ready before 6.0 final.

             

            When it comes to the missing dependencies I don't think they come from jbpm. Could you run mvn dependency:tree to check what artifacts require them?

             

            HTH

            • 3. Re: Re: jbpm6 in JBoss EAP 6.1
              Brian Wallis Master

              Good to hear about the EAP 6.1 module, I'll look out for it.

               

              The missing dependencies seem to be coming from kie-services (had to run dependency:tree with -debug to get the output).  See below for  com.noelios.restlet:com.noelios.restlet:jar:1.1.10:compile, org.restlet:org.restlet:jar:1.1.10:compile, javax.el:el-api:jar:1.2:compile and org.apache.ant:ant:jar:1.8.3-redhat-1:compile.

               

              I suspect the ant one can be fixed by explicitly including it with version 1.8.3 but no idea where to find the others,

               

               

              [DEBUG]    org.jbpm:jbpm-kie-services:jar:6.0.0.CR2:compile
              [DEBUG]       org.drools:drools-core:jar:6.0.0.CR2:compile
              [DEBUG]       org.drools:drools-compiler:jar:6.0.0.CR2:compile
              [DEBUG]          org.antlr:antlr-runtime:jar:3.5:compile
              [DEBUG]          org.eclipse.jdt.core.compiler:ecj:jar:3.7.2-redhat-1:compile (version managed from 3.7.2 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]          com.thoughtworks.xstream:xstream:jar:1.4.3:compile
              [DEBUG]             xmlpull:xmlpull:jar:1.1.3.1:compile
              [DEBUG]             xpp3:xpp3_min:jar:1.1.4c:compile
              [DEBUG]          com.google.protobuf:protobuf-java:jar:2.5.0:compile
              [DEBUG]       org.jbpm:jbpm-audit:jar:6.0.0.CR2:compile
              [DEBUG]          org.drools:drools-persistence-jpa:jar:6.0.0.CR2:compile
              [DEBUG]       org.jbpm:jbpm-human-task-core:jar:6.0.0.CR2:compile
              [DEBUG]          javax.enterprise:cdi-api:jar:1.0-SP4-redhat-2:compile (version managed from 1.0-SP4 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.1.Final-redhat-2:compile
              [DEBUG]          javax.inject:javax.inject:jar:1-redhat-3:compile (version managed from 1 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]          javax.activation:activation:jar:1.1.1-redhat-2:compile (version managed from 1.1.1 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]          javax.annotation:jsr250-api:jar:1.0:compile
              [DEBUG]          javax.mail:mail:jar:1.4.5-redhat-1:compile (version managed from 1.4.5 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]       org.jbpm:jbpm-shared-services:jar:6.0.0.CR2:compile
              [DEBUG]          org.kie.commons:kie-commons-validation:jar:6.0.0.CR2:compile
              [DEBUG]          org.kie.commons:kie-nio2-api:jar:6.0.0.CR2:compile
              [DEBUG]             org.kie.commons:kie-commons-regex:jar:6.0.0.CR2:compile
              [DEBUG]          org.jboss.weld:weld-core:jar:1.1.13.Final-redhat-1:compile (version managed from 1.1.13.Final by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             com.google.guava:guava:jar:13.0.1-redhat-1:compile
              [DEBUG]       org.jbpm:jbpm-runtime-manager:jar:6.0.0.CR2:compile
              [DEBUG]          org.jbpm:jbpm-persistence-jpa:jar:6.0.0.CR2:compile
              [DEBUG]       org.jbpm:jbpm-human-task-workitems:jar:6.0.0.CR2:compile
              [DEBUG]       org.jbpm:jbpm-form-services:jar:6.0.0.CR2:compile
              [DEBUG]          commons-io:commons-io:jar:2.1-redhat-2:compile (version managed from 2.1 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]          com.google.code.gson:gson:jar:1.7.2:compile
              [DEBUG]          commons-vfs:commons-vfs:jar:1.0:compile
              [DEBUG]             commons-logging:commons-logging:jar:1.0.4:compile
              [DEBUG]       org.kie:kie-api:jar:6.0.0.CR2:compile
              [DEBUG]       org.kie:kie-internal:jar:6.0.0.CR2:compile
              [DEBUG]       org.kie.commons:kie-commons-io:jar:6.0.0.CR2:compile
              [DEBUG]          org.kie.commons:kie-commons-data:jar:6.0.0.CR2:compile
              [DEBUG]          org.apache.helix:helix-core:jar:0.6.1-incubating:compile
              [DEBUG]             org.apache.zookeeper:zookeeper:jar:3.3.4:compile
              [DEBUG]                jline:jline:jar:0.9.94:compile
              [DEBUG]             org.codehaus.jackson:jackson-core-asl:jar:1.9.9-redhat-2:compile (version managed from 1.8.5 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             org.codehaus.jackson:jackson-mapper-asl:jar:1.9.9-redhat-2:compile (version managed from 1.8.5 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             commons-cli:commons-cli:jar:1.2-redhat-2:compile (version managed from 1.2 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             com.github.sgroschupf:zkclient:jar:0.1:compile
              [DEBUG]             org.apache.camel:camel-josql:jar:2.5.0:compile
              [DEBUG]                org.apache.camel:camel-core:jar:2.5.0:compile
              [DEBUG]                   commons-logging:commons-logging-api:jar:1.1:compile
              [DEBUG]                   org.fusesource.commonman:commons-management:jar:1.0:compile
              [DEBUG]                net.sf.josql:josql:jar:1.5:compile
              [DEBUG]                net.sf.josql:gentlyweb-utils:jar:1.5:compile
              [DEBUG]             org.apache.commons:commons-math:jar:2.1:compile
              [DEBUG]             com.noelios.restlet:com.noelios.restlet:jar:1.1.10:compile
              [DEBUG]             org.restlet:org.restlet:jar:1.1.10:compile
              [DEBUG]       org.kie.commons:kie-commons-cdi:jar:6.0.0.CR2:compile
              [DEBUG]       org.kie.commons:kie-nio2-model:jar:6.0.0.CR2:compile
              [DEBUG]       org.kie:kie-ci:jar:6.0.0.CR2:compile
              [DEBUG]          org.apache.maven:maven-core:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-settings:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-settings-builder:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-repository-metadata:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-artifact:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-plugin-api:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-model-builder:jar:3.0.5:compile
              [DEBUG]             org.apache.maven:maven-aether-provider:jar:3.0.3:compile (version managed from 3.0.5 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0:compile
              [DEBUG]                org.sonatype.sisu:sisu-inject-bean:jar:2.3.0:compile
              [DEBUG]                   org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:compile
              [DEBUG]                      org.sonatype.sisu:sisu-guava:jar:0.9.9:compile
              [DEBUG]             org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
              [DEBUG]             org.codehaus.plexus:plexus-utils:jar:2.0.4:compile (version managed from 2.0.6 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]             org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
              [DEBUG]             org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
              [DEBUG]             org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
              [DEBUG]                org.sonatype.plexus:plexus-cipher:jar:1.4:compile
              [DEBUG]          org.apache.maven:maven-model:jar:3.0.5:compile
              [DEBUG]          org.apache.maven:maven-compat:jar:3.0.5:compile
              [DEBUG]             org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-7:compile (version managed from 2.4 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]          org.sonatype.aether:aether-api:jar:1.13.1:compile
              [DEBUG]          org.sonatype.aether:aether-util:jar:1.13.1:compile
              [DEBUG]          org.sonatype.aether:aether-impl:jar:1.13.1:compile
              [DEBUG]             org.sonatype.aether:aether-spi:jar:1.13.1:compile
              [DEBUG]          org.sonatype.aether:aether-connector-wagon:jar:1.13.1:compile
              [DEBUG]          org.sonatype.aether:aether-connector-file:jar:1.13.1:compile
              [DEBUG]          org.sonatype.maven:wagon-ahc:jar:1.2.1:compile
              [DEBUG]             com.ning:async-http-client:jar:1.6.5:compile
              [DEBUG]                org.jboss.netty:netty:jar:3.2.5.Final:compile
              [DEBUG]          org.apache.ant:ant:jar:1.8.3-redhat-1:compile (version managed from 1.8.2 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]       org.jboss.seam.transaction:seam-transaction:jar:3.1.0.Final:compile
              [DEBUG]          org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:1.0.2.Final-redhat-1:compile (version managed from 1.0.0.Final by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]          org.jboss.seam.transaction:seam-transaction-api:jar:3.1.0.Final:compile
              [DEBUG]       org.jboss.solder:solder-api:jar:3.2.0.Final:compile
              [DEBUG]          org.jboss.solder:solder-logging:jar:3.2.0.Final:compile
              [DEBUG]       javax.transaction:jta:jar:1.1:compile
              [DEBUG]       org.mvel:mvel2:jar:2.1.6.Final:compile
              [DEBUG]       org.apache.lucene:lucene-core:jar:4.0.0:compile
              [DEBUG]       org.apache.lucene:lucene-queryparser:jar:4.0.0:compile
              [DEBUG]          org.apache.lucene:lucene-queries:jar:4.0.0:compile
              [DEBUG]          org.apache.lucene:lucene-sandbox:jar:4.0.0:compile
              [DEBUG]             jakarta-regexp:jakarta-regexp:jar:1.4:compile
              [DEBUG]       org.apache.lucene:lucene-analyzers-common:jar:4.0.0:compile
              [DEBUG]       javax.el:el-api:jar:1.2:compile
              [DEBUG]       org.freemarker:freemarker:jar:2.3.19:compile
              [DEBUG]       commons-collections:commons-collections:jar:3.2.1-redhat-2:compile (version managed from 3.2.1 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              [DEBUG]       commons-codec:commons-codec:jar:1.4-redhat-2:compile (version managed from 1.4 by org.jboss.as:jboss-as-parent:7.2.0.Final-redhat-8)
              
              • 4. Re: jbpm6 in JBoss EAP 6.1
                Maciej Swiderski Master

                Alright, thanks for checking.

                 

                THen the restlet (both) you can exclude as they are used only for clustering (based on apache helix). Then el-api you can exclude as well, it has already been changed to the proper version but it is used for an outdated module that most likely will be removed before 6.0. So the only thing that is actually required is ant and you have already found a way to add it.

                 

                HTH

                • 5. Re: jbpm6 in JBoss EAP 6.1
                  Anindya Saha Newbie

                  Hello

                  I have successfully created a JSF web application based on jbpm6 and running on JBoss EAP 6.1, attached screenshot is the list of jars I am using (ignore the primefaces jars). Hope this helps.

                   

                  Anindya

                  • 6. Re: Re: jbpm6 in JBoss EAP 6.1
                    Brian Wallis Master

                    Thanks Maciej, excluding the restlet jars and the el-api jar and forcing the ant version seems to have done the trick.

                     

                    And thanks Anindya, a list from a working example is always useful!