6 Replies Latest reply on Sep 8, 2011 8:47 PM by ffang

    Building FUse ESB from source

    gt6081a

      Trying to build Fuse ESB from the source.  I have maven 3 installed and setup, I have tried deleting the repo and rebuilding from source with the -U option, but for some reason I keep getting the following failure:

       

      Apache ServiceMix :: Features :: Examples :: JPA OSGi  SUCCESS (0.812s)

      Apache ServiceMix :: Features :: Examples :: JPA OSGi :: CXF SE BUNDLE  F

      AILURE (47.136s)

      Apache ServiceMix :: Features :: Examples :: JPA OSGi :: CXF BC BUNDLE  S

      KIPPED

      Apache ServiceMix :: Features :: Examples :: JPA OSGi :: Client  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: Common Classes  SK

      IPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF OSGi  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF WS Security OS

      Gi  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF JMS Transport

      OSGi  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF NMR Transport

      OSGi  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF SOAP Handler O

      SGi  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF SOAP Handler O

      SGi  SKIPPED

      Apache ServiceMix :: Features :: Examples :: iTests :: CXF MTOM OSGi  SKI

      PPED

      Apache ServiceMix :: Features :: Examples :: iTests :: Integration Tests

      SKIPPED

      Apache ServiceMix :: Features :: Assembly ......... SKIPPED

      -


      BUILD FAILURE

      -


      Total time: 36:43.281s

      Finished at: Wed Sep 07 11:23:27 EDT 2011

      Final Memory: 98M/329M

      -


      Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.4.1-fuse-00-4

      3:wsdl2java (default) on project wsdl-first-cxfse-bundle: PermGen space -> [Help

      1]

      To see the full stack trace of the errors, re-run Maven with the -e swit

      ch.

      Re-run Maven using the -X switch to enable full debug logging.

      For more information about the errors and possible solutions, please rea

      d the following articles:

      http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE

      xception

      After correcting the problems, you can resume the build with the command

       

         mvn

       

      Edited by: gt6081a on Sep 7, 2011 3:40 PM

       

      Edited by: gt6081a on Sep 7, 2011 3:40 PM

        • 1. Re: Building FUse ESB from source
          janstey

          Try increasing the MaxPermSize Maven is using in your environment. I'm using the following:

           

          export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=256m"
          

           

          • 2. Re: Building FUse ESB from source
            gt6081a

            Same issue unfortunately.  Though this time it failed on a later packs so I will try once again increasing the perm size a bit more to see what happens.

            • 3. Re: Building FUse ESB from source
              gt6081a

              Same issue, fails on the compilation of integration tests for some reason.

              • 4. Re: Building FUse ESB from source
                ffang

                Hi,

                 

                FYI, this is my MAVEN_OPTS and I can build the src without any problem.

                 

                export MAVEN_OPTS="-Xmx2048m -XX:MaxNewSize=1024m -XX:MaxPermSize=1024m -XX:ThreadStackSize=1024m"

                 

                Also my maven and JDK version

                 

                Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)

                Maven home: /Users/ffang/apache-maven-3.0.3

                Java version: 1.6.0_24, vendor: Apple Inc.

                Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

                Default locale: en_US, platform encoding: MacRoman

                OS name: "mac os x", version: "10.5.8", arch: "x86_64", family: "mac"

                 

                Freeman

                • 5. Re: Building FUse ESB from source
                  gt6081a

                  Seems that setting the values that high results in:

                   

                  Error occurred during initialization of VM

                  Could not reserve enough space for object heap

                  Could not create the Java virtual machine.

                  C:\apache-servicemix-4.4.0-fuse-00-43-src\src>

                  • 6. Re: Building FUse ESB from source
                    ffang

                    Hi,

                     

                    What's your JDK and Maven version? What's your platform?

                    How large the memory of your machine?

                     

                     

                    Freeman