12 Replies Latest reply on Jul 18, 2007 4:18 PM by Giovanny Gutierrez

    build error

    Matthew Sandoz Newbie

      I'm getting the following build error after running ant from the jbpm.3\build build.xml file.

      C:\temp\jbpm.3\build\build.xml:34: The following error occurred while executing this line:
      C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:62: The following error occurred while executing this line
      :
      C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:218: Warning: Could not find file C:\temp\jbpm.3\designer\
      jpdl\org.jbpm.gd.jpdl.build\target\workspace\N.3.0.13.1\org.jbpm.gd.jpdl.feature-3.0.13.1.zip to copy.


      i dont know if its related but i have these warning messages at the top of the build output:

      [javac] Compiling 371 source files to C:\temp\jbpm.3\jpdl\jar\target\classes
      Warning: Reference compile.classpath has not been set at runtime, but was found during
      build file parsing, attempting to resolve. Future versions of Ant may support
       referencing ids defined in non-executed targets.
      Warning: Reference libs.classpath has not been set at runtime, but was found during
      build file parsing, attempting to resolve. Future versions of Ant may support
       referencing ids defined in non-executed targets.


      ive tried several times and keep getting the error - any suggestions?

        • 1. Re: build error
          Koen Aers Master

          Can you describe exactly what you are trying to build? If you want to build the jpdl distribution try the build.xml file in the jbpm.3/jpdl/dist module.
          If it is the designer, run the build.xml in the jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build module.

          Regards,
          Koen

          • 2. Re: build error
            Matthew Sandoz Newbie

            Hi Koen,

            I will try to describe it better -

            my first goal is to build the GPD plugin. I looked at the instructions and they seemed to concentrate on the jbpm.3/build build.xml so i went with that one figuring it would build subprojects. that was the output I put into the post. After your post, I tried to run just the jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build build.xml file.

            i immediately got the below very similar error:

            build-feature:
             [get] Getting: http://repository.jboss.com/licenses/JBossORG-EULA.txt
             [get] To: C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\target\temp\jboss.eula.txt
             [get] Error getting http://repository.jboss.com/licenses/JBossORG-EULA.txt to C:\temp\jbpm.3\designer\jpdl\org.jbp
            m.gd.jpdl.build\target\temp\jboss.eula.txt
            
            BUILD FAILED
            C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:62: The following error occurred while executing this line
            :
            C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:218: Warning: Could not find file C:\temp\jbpm.3\designer\
            jpdl\org.jbpm.gd.jpdl.build\target\workspace\N.3.0.13.1\org.jbpm.gd.jpdl.feature-3.0.13.1.zip to copy.


            My end goal is to code in eclipse and run the project from there to test it out but i thought id start with the builds first.

            • 3. Re: build error
              Matthew Sandoz Newbie

              I ran again since looked like i had a connection error the first time - the start is a little cleaner:

              build-feature:
               [get] Getting: http://repository.jboss.com/licenses/JBossORG-EULA.txt
               [get] To: C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\target\temp\jboss.eula.txt
              
              BUILD FAILED
              C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:62: The following error occurred while executing this line
              :
              C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:218: Warning: Could not find file C:\temp\jbpm.3\designer\
              jpdl\org.jbpm.gd.jpdl.build\target\workspace\N.3.0.13.1\org.jbpm.gd.jpdl.feature-3.0.13.1.zip to copy.


              • 4. Re: build error
                Matthew Sandoz Newbie

                i found a few things when i turned on verbose output on ant:

                1. jbpm.3/build/readme.html states that the custom build.properties file should be located in ${user.home}/jbpm/build.properties. in the ant output though it was looking for ${user.home}/.settings/jbpm/build.properties. should that be changed?

                2. in the building the sources wiki page, it shows eclipse.home=c:/software/eclipse. i saw that the build was looking for the variable eclipse.dir. do i need to specify them both?

                3. i have set jbpm.root to the jbpm.3 directory. is that correct?

                also in the midst of the build i saw this:

                run-eclipse-plugin-builder:
                Property "docs.dir" has not been set
                 [java] Executing 'C:\Program Files\Java\jdk1.5.0_11\jre\bin\java.exe' with arguments:
                 [java] '-classpath'
                 [java] 'C:\software\eclipse\startup.jar'
                 [java] 'org.eclipse.core.launcher.Main'
                 [java] '-application'
                 [java] Java Result: 13
                 [java] 'org.eclipse.ant.core.antRunner'
                 [java] '-data'
                 [java] 'C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/workspace'
                 [java] '-f'
                 [java] 'mainTargets.xml'
                 [java] '-Djbpm.cvs.root=:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm'
                 [java] '-DbuildDirectory=C:\temp\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/workspace'
                 [java] '-Ddocs.dir=${docs.dir}'
                 [java] '-Declipse.dir=C:/software/eclipse'
                 [java] '-Dlib.jbpm.designer.version=3.0.13.1'
                 [java] '-Djbpm.gpd.version.tag=HEAD'
                 [java] '-Djbpm.version=3.2.Alpha1'
                 [java] '-Dlocal.repository=c:/Users/msandoz/jbpm/repository'
                 [java] '-DskipFetch=true'
                 [java]
                 [java] The ' characters around the executable and arguments are
                 [java] not part of the command.


                is that expected behavior? C:\software\eclipse\ originally had one of my eclipse installations in it but it was removed during one of the builds.

                Is there an up-to-date map of what these settings and file locations should be and what the variables mean?

                • 5. Re: build error
                  Ronald van Kuijk Master

                  1: it should at least be identical. I encountered the same this evening and reported the issue in jira (under GPD not JBPM!!!)

                  2: Wiki is probably out of date. The build scripts changed a lot lately.

                  3: default should be fine

                  You most likely pointed the eclipse dir to a wrong directory. the "workspace\N.3.0.13.1" should not be in there afaik

                  • 6. Re: build error
                    Matthew Sandoz Newbie

                    thanks based on your reply, i will not worry too much about 1-3.

                    what does concern me though is the build error that results from the script below:

                    <target name="run-eclipse-plugin-builder" description="launch the f**** atomic black box eclipse plugins build">
                     <java classname="org.eclipse.core.launcher.Main" fork="true">
                     <classpath path="${eclipse.home}/startup.jar" />
                     <arg line="-application org.eclipse.ant.core.antRunner" />
                     <arg line="-data ${basedir}/${workspace.dir}"/>
                     <arg line="-f mainTargets.xml"/>
                     <arg line="-Djbpm.cvs.root=${jbpm.cvs.root}" />
                     <arg line="-DbuildDirectory=${basedir}/${workspace.dir}" />
                     <arg line="-Ddocs.dir=${docs.dir}" />
                     <arg line="-Declipse.dir=${eclipse.home}" />
                     <arg line="-Dlib.jbpm.designer.version=${lib.jbpm.designer.version}" />
                     <arg line="-Djbpm.gpd.version.tag=${jbpm.gpd.version.tag}" />
                     <arg line="-Djbpm.version=${jbpm.version}" />
                     <arg line="-Dlocal.repository='${local.repository}'" />
                     <arg line="-DskipFetch=true" />
                     </java>
                     </target>
                    


                    in jbpm.3\build\build.properties the value lib.jbpm.designer.version=3.0.13.1 is set.

                    what should be in the eclipse.home? is it strictly populated by the build or is it my whole eclipse install? currently i have an eclipse install there. maybe theres some kind of misconfiguration there...

                    • 7. Re: build error
                      Matthew Sandoz Newbie

                      The run-eclipse-plugin-builder target tries to run C:\software\eclipse\startup.jar but earlier in the build, this happens:

                      [delete] Deleting directory C:\software\eclipse

                      it then puts some artifacts there but not startup.jar.

                      my conclusion is that either -

                      1. it should be copying more of eclipse to that directory or
                      2. i need to point to the existing eclipse installation with one variable and the eclipse artifact directory with another.

                      • 8. Re: build error
                        Tom Baeyens Master

                        koen, can you check and fix this ?

                        • 9. Re: build error
                          Koen Aers Master

                          Most likely the Eclipse driver files that are in your local repository are not downloaded correctly. Did you already try to unzip them manually?

                          The most easy way to build the Eclipse plugin is through a simple script that looks like the following:

                          cvs -d :pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jbpm co -r HEAD jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build
                          cd jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build
                          ant

                          Of course you would need to set the correct variables in your local build.properties file and have the correct Eclipse drivers available in your local repository.

                          Btw. headless Eclipse plugin builds are a real PITA. You probably will not need to do this initially. The most easy way to start working on the designer plugin is to checkout the module jbpm.3/designer/jpdl/org.jbpm.gd.jpdl as a project in your workspace. You can always create a deployable plugin by using the Eclipse export mechanism.

                          Regards,
                          Koen

                          • 10. Re: build error
                            Matthew Sandoz Newbie

                            i download the files with cvs so that should be ok. i then ran the build under jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build as you mentioned and thats how i got the error. here are my personal build props:

                            jboss.home=C:/jboss-4.0.5.GA
                            eclipse.home=C:/software/eclipse
                            eclipse.dir=C:/software/eclipse
                            local.repository=c:/Users/msandoz/jbpm/repository
                            remote.repository=http://repository.jboss.com
                            docbook.support.dir=${local.repository}
                            windows.browser=C:/Program Files/Internet Explorer/IEXPLORE.EXE
                            macos.browser=/usr/bin/open
                            linux.browser=firefox
                            


                            also when i tried to run the project in eclipse the Jbpm3DevelopDesignerInEclipse wiki page directed me to check out the jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.ui project which had of course lots of reference errors. should open a jira ticket for a change to the wiki page?

                            i have now opened the project you suggested and it is running smoothly. i think i'll take a break from the build for a bit while i play with the editor :)




                            • 11. Re: build error
                              Koen Aers Master

                              You can change the wiki page yourself if you would like to. No need for a JIRA ticket.

                              Regards,
                              Koen

                              • 12. Re: build error
                                Giovanny Gutierrez Newbie

                                I had the same error and I did two things to solve it, first at all i comment the line

                                <!--<arg line="-Ddocs.dir=${docs.dir}" />-->


                                And then I modified both lines that refer to the build ${basedir} of the following way

                                <arg line="-data ${basedir}/${workspace.dir}"/> for
                                <arg line="-data '${basedir}/${workspace.dir}'"/>
                                

                                and

                                <arg line="-DbuildDirectory=${basedir}/${workspace.dir}" /> for
                                <arg line="-DbuildDirectory='${basedir}/${workspace.dir}'" />