1 2 Previous Next 18 Replies Latest reply on Feb 15, 2008 12:55 PM by clandestino_bgd

    Cannot build JBPM source from CVS

    clandestino_bgd

      Hi all, problem is in the subject.
      My environment is:
      Ubuntu 7.04
      JDK Sun 1.5.0
      ANT 1.7.0

      I have followed instructions from jbpm.3/build/readme file.
      All dependencies are downloaded in my user.home/jbpm/repository folder.

      I have checked out clean copy.
      In my local build.properties, I override only software.installation.dir entry.

      I am posting trace below.
      Two things more:
      1. I do not understand is how it is possible that GPD 3.1.2 is released 2 weeks ago, but in jbpm.3/build/build.properties stands: lib.jbpm.designer.version=3.1.1
      2. There is only zip archive of latest eclipse for windows in repository, there is no such for linux. Since there is difference only in couple of files, wouldn't it be useful to include it, too?

      rget.eclipse:
       [mkdir] Created dir: /home/agaton/projects/jbpm.3/eclipse
       [touch] Creating /home/agaton/projects/jbpm.3/eclipse/eclipse-SDK-3.3.1.1-win32.zip.txt
       [touch] Creating /home/agaton/projects/jbpm.3/eclipse/GEF-SDK-3.3.1.zip.txt
       [touch] Creating /home/agaton/projects/jbpm.3/eclipse/emf-sdo-xsd-SDK-2.3.1.zip.txt
       [touch] Creating /home/agaton/projects/jbpm.3/eclipse/wtp-sdk-R-2.0.1-20070926042742.zip.txt
       [touch] Creating /home/agaton/projects/jbpm.3/eclipse/dtp-sdk_1.5.1.zip.txt
       [unzip] Expanding: /home/agaton/jbpm/repository/eclipse/sdk/3.3.1.1/eclipse-SDK-3.3.1.1-win32.zip into /home/agaton/projects/jbpm.3
       [unzip] Expanding: /home/agaton/jbpm/repository/eclipse/webtools/2.0.1/wtp-sdk-R-2.0.1-20070926042742.zip into /home/agaton/projects/jbpm.3
       [unzip] Expanding: /home/agaton/jbpm/repository/eclipse/gef/3.3.1/GEF-SDK-3.3.1.zip into /home/agaton/projects/jbpm.3
       [unzip] Expanding: /home/agaton/jbpm/repository/eclipse/emf-sdo-xsd/2.3.1/emf-sdo-xsd-SDK-2.3.1.zip into /home/agaton/projects/jbpm.3
       [unzip] Expanding: /home/agaton/jbpm/repository/eclipse/dtp/1.5.1/dtp-sdk_1.5.1.zip into /home/agaton/projects/jbpm.3
       [copy] Copying 1 file to /home/agaton/projects/jbpm.3/eclipse/plugins
      
      prepare.workspace:
       [mkdir] Created dir: /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/features
       [mkdir] Created dir: /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/plugins
       [copy] Copying 4 files to /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/features/org.jbpm.gd.jpdl.feature
       [copy] Copying 497 files to /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/plugins/org.jbpm.gd.jpdl
      
      run-eclipse-plugin-builder:
       [java] Buildfile: mainTargets.xml
       [java]
       [java] main:
       [java]
       [java] preBuild:
       [java]
       [java] preSetup:
       [java] [echo] doing preSetup
       [java]
       [java] getMapFiles:
       [java] [echo] doing getMapFiles
       [java] [copy] Copying 1 file to /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/maps
       [java]
       [java] postSetup:
       [java] [echo] doing postSetup
       [java]
       [java] fetch:
       [java]
       [java] generate:
       [java]
       [java] preGenerate:
       [java] [echo] doing preGenerate
       [java] [echo] baseLocation is /home/agaton/projects/jbpm.3/eclipse
       [java]
       [java] allElements:
       [java]
       [java] init:
       [java]
       [java] generateScript:
       [java] [eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
       [java] [eclipse.buildScript] Bundle org.jbpm.gd.jpdl:
       [java] [eclipse.buildScript] Missing required plug-in org.jbpm.gd.common_0.0.0.
       [java]
       [java] BUILD FAILED
       [java] /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/mainTargets.xml:23: The following error occurred while executing this line:
       [java] /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/mainTargets.xml:63: The following error occurred while executing this line:
       [java] /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/customTargets.xml:8: The following error occurred while executing this line:
       [java] /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/genericTargets.xml:63: Unable to find plug-in: org.jbpm.gd.jpdl_0.0.0. Please check the error log for more details.
       [java]
       [java] Total time: 1 second
       [java] Java Result: 13
      
      create.manifest:
       [mkdir] Created dir: /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/manifest
      
      build-feature:
       [mkdir] Created dir: /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/temp
       [get] Getting: http://repository.jboss.com/licenses/JBossORG-EULA.txt
       [get] To: /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/temp/jboss.eula.txt
       [copy] Copying 1 file to /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/temp
       [copy] Copying 1 file to /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/temp
      
      BUILD FAILED
      /home/agaton/projects/jbpm.3/build/build.xml:37: The following error occurred while executing this line:
      /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/build.xml:63: The following error occurred while executing this line:
      /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/build.xml:221: Warning: Could not find file /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/N.3.1.1/org.jbpm.gd.jpdl.feature-3.1.1.zip to copy.
      
      


      Thank you for your quick response in advance.
      Milan

        • 1. Re: Cannot build JBPM source from CVS
          kukeltje

          1: could be a slip of the keyboard. I'm not sure.
          2: linux, no not needed. only the java files of eclipse are needed.

          Regarding the error.

          [java] /home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/genericTargets.xml:63:
           Unable to find plug-in: org.jbpm.gd.jpdl_0.0.0. Please check the error log for more details.
          seems to be the cause. I know Koen has done some refactoring. Maybe not all is done yet. You can disable building the GPD in de ant file. See if that helps.

          • 2. Re: Cannot build JBPM source from CVS
            clandestino_bgd

            Hi kukeltje, firstly, thanx for response.


            1: could be a slip of the keyboard. I'm not sure.


            Maybe :)


            2: linux, no not needed. only the java files of eclipse are needed.


            My point was:
            The build procedure unpacks eclipse, copies generated GPD jars and makes eclipse distribution ready to use ONLY for Windows. I thought that it may be useful the same thing for Linux, too, linux dist has 2 additional files:
            - eclipse executable file and
            - libcairo-swt.so


            seems to be the cause. I know Koen has done some refactoring. Maybe not all is done yet. You can disable building the GPD in de ant file. See if that helps.


            Yes, I saw Koen's post on dev archive.
            Disabling building GPD certainly helped, now I have some artifacts built, but not all, e.g bamconsole and jboss.
            I know that bamconsole is work in progress and that maybe is not integrated yet. But what is the case with jboss folder?

            And now, something more important...
            Ok, I installed fresh eclipse 3.3.1.1 for linux, downloaded GPD 3.1.2 binaries, copied everything, started new project, simple process def has been created. Everything cool...
            But then I added few nodes: task node, new ESB node, mail node and nothing happens when I double click them, also I see no option when I right-click on them, so I cannot define task in a tasknode. Also, I cannot add swimlane.
            Any idea, why is this happening?
            Did anybode test GPD under Linux?

            I tried both with java 5 and 6.

            Thank you for help
            Milan





            • 3. Re: Cannot build JBPM source from CVS
              kukeltje

               

              copies generated GPD jars and makes eclipse distribution ready to use ONLY for Windows.

              Not as far as I know... it makes a GPD plugin which is totally independent of os version. You should be able to install that in linux also. It does not make a full GPD+eclipse. If it does, it is totally new to me.

              Disabling building GPD certainly helped, now I have some artifacts built, but not all, e.g bamconsole and jboss.
              I know that bamconsole is work in progress and that maybe is not integrated yet. But what is the case with jboss folder?

              hmm... I have to admit I did not do a build for over a month.... I'll have a look over the weekend (curious to the bam console)

              But then I added few nodes: task node, new ESB node, mail node and nothing happens when I double click them, also I see no option when I right-click on them, so I cannot define task in a tasknode. Also, I cannot add swimlane.
              Any idea, why is this happening?

              Sure... because everything is happening in the properties pane/tab. below (or where you put it) Currently there are almost no right-click options.

              • 4. Re: Cannot build JBPM source from CVS
                pbolle

                Hi Ronald,

                It seems to be that the build problem is more then a more then a “shortâ€� refactoring problem.
                I am using windows XP , ant 1.7 and java 5 and have the same problem since a month.

                It would be grate if somebody would fix the broken build and add gpd to hudson.jboss.org so it is visible to all if the build is broken.

                Regards Philipp

                • 5. Re: Cannot build JBPM source from CVS
                  kukeltje

                  Nice UTF-8 support here, don't you think?

                  I'm updating my tree at the moment and will try a build then.... Windows 2000, Java 5, ant 1.6.4.

                  • 6. Re: Cannot build JBPM source from CVS

                    Hi all,

                    when compiling jBpm CVS HEAD, I stumbled upon the same problem, "Missing required plug-in org.jbpm.gd.common_0.0.0", but managed to get the build run to completion with some "manual intervention".

                    Steps to reproduce (jbpm.3 is the local CVS module root folder):


                    • Set up a copy of Eclipse SDK 3.3.1.1, unzip dtp-sdk_1.5.1, emf-sdo-xsd-SDK-2.3.1, GEF-SDK-3.3.1, wtp-sdk-R-2.0.1-20070926042742 (all from the local jBPM repo) into the eclipse dir, and switch to a clean workspace.
                    • Import the projects under jbpm.3/designer (org.jbpm.gd.bpel, org.jbpm.gd.bpel.runtime, org.jbpm.gd.common, org.jbpm.gd.pf).
                    • All projects should build, except org.jbpm.gd.bpel.runtime, which depends on org.eclipse.bpel, so I installed the BPEL plugins from http://download.eclipse.org/technology/bpel/update-site.
                    • For some strange reason, org.jbpm.gd.bpel.runtime still does not compile, having troubles with "The import org.eclipse.bpel cannot be resolved", although the plugin is there, and I reloaded the target platform under Preferences / Plug-in Development / Target Platform, but still no luck. Can anyone help here?
                    • Export org.jbpm.gd.common (File / Export / Deployable plug-ins and fragments) to jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\target\workspace, deselect option "Package plug-ins as individual JAR archives".


                      By the way, I found that when checking out jBpm HEAD inside Eclipse, not all folders are checked out, so I used cvs command line client to check out the complete source.

                      What was missing from the build was jbpm.sar, which I built using the following steps:

                      • Run jbpm.3\jpdl\jar>ant config.profile.datasource. Although this is marked as old stuff in the main build.xml, it seems to work.
                      • Manually copy jbpm.3\jpdl\jar\target\profiles\jbpm.config.profile.datasource.jar to JBPM_REPO\jbpm\jpdl\3.2.2\lib\jbpm.config.profile.datasource.jar
                      • Run the package target in jboss/sar: jbpm.3\jboss\sar>ant package


                        Testing jbpm.sar:

                        • Copy jbpm.sar from jbpm.3\jboss\sar\target to jboss-4.2.2.GA\server\default\deploy
                        • Copy jbpm-ds.xml from jbpm.3\jboss\configuration\4.2.2.GA\target\configuration\deploy to jboss-4.2.2.GA\server\default\deploy
                        • Copy the application-policy name="jbpm" from jbpm.3\jboss\configuration\4.2.2.GA\target\configuration\conf\login-config.xml into jboss-4.2.2.GA\server\default\conf\login-config.xml
                        • Copy jbpmDB.properties and jbpmDB.script from jbpm.3\jboss\configuration\4.2.2.GA\target\configuration\data\hypersonic to jboss-4.2.2.GA\server\default\data\hypersonic
                        • Copy the JbpmCommandQueue and JbpmJobQueue mbean definitions from jbpm.3\jboss\configuration\4.2.2.GA\target\configuration\deploy\jms\jbossmq-destinations-service.xml to jboss-4.2.2.GA\server\default\deploy\jms\jbossmq-destinations-service.xml
                        • Copy jbpm-console.war from jbpm.3\console\target\jbossas-4.2.x to jboss-4.2.2.GA\server\default\deploy
                        • Start jboss-4.2.2.GA
                        • jbpm-console should be functional
                        • JNDIView should show the JbpmService MBean under jboss.jbpm:name=DefaultJbpm,service=JbpmService


                          And, seriously folks, what about migrating the build process to maven 2? With the current build system, several targets get re-run over and over again during a build, hinting at broken dependency checking of build artifacts, and resulting in unneccessary long build times. As far as I can see, JBoss is gradually moving all project builds to maven, so this might be worth considering (I know, the current build system has certainly taken lots of time and energy, but maven does this, well, even better).

                          regards,
                          Karl

                          Karl Traunmueller

                          Objectbay Software & Consulting GmbH
                          Softwarepark 35
                          4232 Hagenberg, Austria
                          www.objectbay.com


                    • 7. Re: Cannot build JBPM source from CVS

                      It's of course jmx-console, not JNDI View. JNDI View should show jbpm/JbpmConfiguration under the java: namespace.

                      regards,
                      Karl

                      • 8. Re: Cannot build JBPM source from CVS
                        pbolle

                        Hi Karl,

                        Thanks for your response. I can reproduce your problem after building the org.jbpm.gd.bpel.runtime the import org.eclipse.bpel cannot be resolved.

                        Do you try to build org.jbpm.gd.jpdl? If I import the project in eclipse there is another missing dependency "Cannot find the class file for org.eclipse.jface.text.source.projection.ProjectionViewer".

                        Can any one help here?
                        Please Koen give us a hint!! (or sign ;-)

                        I agree maven would be a big help. But its looks like tom decided to use ivy. In the new repository the builds are done with ivy and ant (http://anonsvn.jboss.org/repos/jbpm/tempranillo/jpdl/trunk).

                        Regards philipp

                        • 9. Re: Cannot build JBPM source from CVS

                          Hi Philipp,

                          right, I get the same error.

                          If I add org.eclipse.jface.text in the Dependencies section of the plugin.xml editor (jface.text was clearly missing), add dom4j-1.4.jar under Java Build Path / Libraries / Add Jars / org.jbpm.gd.bpel/lib, reorganize the imports (Ctrl + Shift + O), add org.dom4j.Element, I still get a single compile error "The method getAttribute(String) is undefined for the type Element" in JpdlContentProvider.java.

                          Strange.

                          Karl

                          • 10. Re: Cannot build JBPM source from CVS
                            clandestino_bgd

                            Hi,
                            now:

                            cvs update followed by
                            ant get.dependencies
                            

                            results with:
                            BUILD FAILED
                            /home/agaton/projects/jbpm.3/build/build.xml:197: java.net.MalformedURLException: no protocol: ${lib.jaxb.api.remote}
                            

                            And there is no lib.jaxb.api.remote defined in build.properties indeed.
                            If I am not talking nonsense, can someone fix this and allow JBOM being built from CVS in general?

                            Thanks
                            Milan

                            • 11. Re: Cannot build JBPM source from CVS
                              kukeltje

                              Try to check out the version labelled 3.2.2 and not use cvs-head. There are some changes going on currently that can make building impossible the coming days

                              • 12. Re: Cannot build JBPM source from CVS
                                pbolle

                                Hi all,

                                in the developer forum Koen has answered my post and he will fix that problem ( http://jboss.org/index.html?module=bb&op=viewtopic&t=127556 ).

                                Regards Philipp

                                • 13. Re: Cannot build JBPM source from CVS
                                  kukeltje

                                  I think these are/were two separate problems. One in because of the GPD, the other because of a webservice frontend being added to jBPM

                                  • 14. Re: Cannot build JBPM source from CVS
                                    pbolle

                                    Hi Ronald,

                                    I don't think so. This Thread is about build problems in two flavours ant and eclipse build problems and both in the gpd.
                                    The linked thread was initially about news in gpd. But how it is possible to test the news without compiling the source ;-).

                                    And after a comment from koen I am sure he will fix that problem and will post the result in the linked thread.

                                    Regards Philipp

                                    1 2 Previous Next