6 Replies Latest reply on Jul 25, 2013 3:37 PM by Frank Langelage

    Build WildFly on Win7 fails for me

    Frank Langelage Master

      System: Win7 64Bit

      JRE: Java 7 Update 25 (64-bit) installed in C:\Program Files\Java\jre7

      JDK: Java SE Development Kit 7 Update 25 (64-bit) installed in C:\Users\frank.LANGFR.000\JDK\1.7.0

      JAVA_HOME="C:\Users\frank.LANGFR.000\JDK\1.7.0"

       

      build.bat starts

       

      then

      ....

      -------------------------------------------------------

      T E S T S

      -------------------------------------------------------

      Running org.jboss.as.arquillian.container.managed.InjectJndiContextTestCase

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.623 sec <<< FAILURE!

      Running org.jboss.as.arquillian.container.managed.InjectManagementClientTestCase

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!

      Running org.jboss.as.arquillian.container.managed.IntegrationTestCase

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!

      Running org.jboss.as.arquillian.container.managed.ManagedAsClientEnterpriseArchiveServletTestCase

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!

      Running org.jboss.as.arquillian.container.managed.ManagedAsClientTestCase

      Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec

      Running org.jboss.as.arquillian.container.managed.ManagedAsClientWebArchiveServletTestCase

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!

      Running org.jboss.as.arquillian.container.managed.ManagedContainerSetupCleanServerUnitTestCase

      Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec

      Running org.jboss.as.arquillian.container.managed.ManagedInContainerTestCase

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!

       

      Results :

       

      Tests in error:

        org.jboss.as.arquillian.container.managed.InjectJndiContextTestCase: javaHome '"C:\Users\frank.LANGFR.000\JDK\1.7.0"' must exist

        org.jboss.as.arquillian.container.managed.InjectManagementClientTestCase: Arquillian has previously been attempted initialized, bu

      t failed. See cause for previous exception

        org.jboss.as.arquillian.container.managed.IntegrationTestCase: Arquillian has previously been attempted initialized, but failed. S

      ee cause for previous exception

        org.jboss.as.arquillian.container.managed.ManagedAsClientEnterpriseArchiveServletTestCase: Arquillian has previously been attempte

      d initialized, but failed. See cause for previous exception

        org.jboss.as.arquillian.container.managed.ManagedAsClientWebArchiveServletTestCase: Arquillian has previously been attempted initi

      alized, but failed. See cause for previous exception

        org.jboss.as.arquillian.container.managed.ManagedInContainerTestCase: Arquillian has previously been attempted initialized, but fa

      iled. See cause for previous exception

       

      Tests run: 8, Failures: 0, Errors: 6, Skipped: 2

       

      What's the problem? JAVA_HOME ist set correctly to an existing JDK dir.

        • 1. Re: Build WildFly on Win7 fails for me
          jaikiran pai Master

          Which module is that which is failing? Assuming it's foo-bar module, then go into <jboss-src>/foo-bar/target/jbossas/standalone/log/ folder and check the server.log file and see what errors are reported.

          • 2. Re: Build WildFly on Win7 fails for me
            jaikiran pai Master

            Never mind, I se the error message now:

            org.jboss.as.arquillian.container.managed.InjectJndiContextTestCase: javaHome '"C:\Users\frank.LANGFR.000\JDK\1.7.0"' must exist

            Let me take a look at the code.

            • 3. Re: Build WildFly on Win7 fails for me
              jaikiran pai Master

              Apparently, new File("C:\Users\frank.LANGFR.000\JDK\1.7.0").isDirectory() is returning false. Are you sure it's a directory?

              1 of 1 people found this helpful
              • 4. Re: Build WildFly on Win7 fails for me
                Frank Langelage Master

                yes, C:\Users\frank.LANGFR.000\JDK\1.7.0 is a directory, but "C:\Users\frank.LANGFR.000\JDK\1.7.0" not.

                The variable JAVA_HOME should not include the quotation marks.

                • 5. Re: Build WildFly on Win7 fails for me
                  jaikiran pai Master

                  Frank Langelage wrote:

                   

                  yes, C:\Users\frank.LANGFR.000\JDK\1.7.0 is a directory, but "C:\Users\frank.LANGFR.000\JDK\1.7.0" not.

                  The variable JAVA_HOME should not include the quotation marks.

                  Hmm, that's going to be interesting when it genuinely requires the double quotations. For example when the path contains a space. Can you try copying/moving the JDK to C:\Users\frank L\JDK\1.7.0 (notice the space between frank and L) and then setting JAVA_HOME (however/wherever you currently set JAVA_HOME) to:

                   

                  JAVA_HOME="C:\Users\frank L\JDK\1.7.0"

                   

                  and running these tests? I'm just curious if it's going to run into trouble.

                  • 6. Re: Build WildFly on Win7 fails for me
                    Frank Langelage Master

                    I cannot rename my user's home dir, but I made "J D K" out of "JDK". Very strange results.

                     

                    >set JAVA_HOME="C:\Users\frank.LANGFR.000\J D K\1.7.0"

                    >build.bat clean install

                    Calling .\tools\maven\bin\mvn.bat clean install

                    "D" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

                     

                    >set JAVA_HOME=C:\Users\frank.LANGFR.000\J D K\1.7.0

                    >build.bat clean install

                    Calling .\tools\maven\bin\mvn.bat clean install

                    [INFO] Scanning for projects...

                    [INFO] ------------------------------------------------------------------------

                    [INFO] Reactor Build Order:

                    [INFO]

                    [INFO] WildFly: Build Configuration

                    ..................

                    [INFO] ------------------------------------------------------------------------

                    [INFO] BUILD SUCCESS

                    [INFO] ------------------------------------------------------------------------

                    [INFO] Total time: 14:28.299s

                    [INFO] Finished at: Thu Jul 25 21:17:17 CEST 2013

                    [INFO] Final Memory: 329M/775M

                    [INFO] ------------------------------------------------------------------------