6 Replies Latest reply on Jul 22, 2014 6:40 AM by thomas_mat_77

    JBPM 6 project dependencies

    thomas_mat_77

      I created a JBPM project on the console.

       

      I have a jbpm2.jar which is dependent on jbpm1.jar(see attached).

       

      When I add jbpm2.jar as a dependency artifact on the JBPM project, it keeps complaining about some classes from jbpm1 pom dependency not being found. After adding all the dependency entries from jbpm1 pom to jbpm2 pom, still keeps complaining about random classes not being found(even when they don't show up on mvn dependency:tree).

       

      Is it a bug that needs to be rectified on jbpm 6 or do we have a workaround for it.

        • 1. Re: JBPM 6 project dependencies
          thomas_mat_77

          Anyone?

          • 2. Re: JBPM 6 project dependencies
            thomas_mat_77

            Does anyone have an answer to this query?

            • 3. Re: JBPM 6 project dependencies
              swiderski.maciej

              what version do you use? Can you try with 6.1.0.CR1 as it has number of fixes/improvements in maven dependency resolution for kjars.

               

              HTH

              • 4. Re: JBPM 6 project dependencies
                thomas_mat_77

                Hi Maciej - thanks for replying.

                 

                I have encountered this on 6.0 as well as on 6.0.1 Final

                 

                I'll try this on 6.1.0 CR1..will keep you posted.

                • 5. Re: Re: JBPM 6 project dependencies
                  thomas_mat_77

                  Thanks Maciej -  that seems to be working on 6.1.0..

                   

                  I have another problem though.

                   

                  I have a jbpm2 jar(see attached zip project) which loads the spring application context(included in the same jar) from the classpath.

                   

                  I create a simple workflow with a script task(with dependency as jbpm2.jar)

                  "System.out.println("Script task executing");

                  com.test.jbpm.jbpm2.App app = new com.test.jbpm.jbpm2.App();

                  org.springframework.context.ApplicationContext appContext = app.loadAppContext();

                  com.test.jbpm.jbpm1.App app1 = (com.test.jbpm.jbpm1.App)appContext.getBean("app1");

                  System.out.println("Test method called " + app1.test());"

                   

                  It fails to load application-context-jbpm2.xml though..I have tried classpath*:application-context-jbpm2.xml as well as using FileAppContextXml..

                  I also tried adding the xml in the jbpm project on the console containing the simple workflow..

                  without any sucess..

                   

                  how do I load the app context?

                  • 6. Re: JBPM 6 project dependencies
                    thomas_mat_77

                    On 6.1.0 CR1, the following dependency issues have been observed:

                    If we add spring-data-jpa and/or hibernate jars as dependencies, to a jbpm project, it fails with error: "Number of bytes transferred cannot be negative". Do we have a fix for this yet?