2 Replies Latest reply on Nov 7, 2013 1:13 AM by Nabeel Bukhari

    WildFly Build Failure

    Nabeel Bukhari Newbie

      I downloaded the zip of WildFly code from git repository. I tried to build but the test case failed.

       

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

      T E S T S

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

      Running org.jboss.as.arquillian.container.domain.managed.ManagedDomainContainerSetupCleanServerUnitTestCase

      Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec

      Running org.jboss.as.arquillian.container.domain.managed.test.ManagedDomainTestCase

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

      Running org.jboss.as.arquillian.container.domain.managed.test.ManagedDomainTwoTestCase

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

       

       

      Results :

       

       

      Tests in error:

        org.jboss.as.arquillian.container.domain.managed.test.ManagedDomainTestCase: Could not start container

        org.jboss.as.arquillian.container.domain.managed.test.ManagedDomainTwoTestCase: Arquillian has previously been attempted initialized, but failed. See cause for previous exception

       

       

      Tests run: 5, Failures: 0, Errors: 2, Skipped: 0

       

       

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

      [INFO] Reactor Summary:

      [INFO]

      [INFO] WildFly: Build Configuration ...................... SUCCESS [1.250s]

      [INFO] WildFly: Parent Aggregator ........................ SUCCESS [0.672s]

      [INFO] WildFly: Protocol Utilities ....................... SUCCESS [8.797s]

      [INFO] WildFly: Controller Client ........................ SUCCESS [3.531s]

      [INFO] WildFly: Core Security Utilities .................. SUCCESS [0.953s]

      [INFO] WildFly: Controller Core .......................... SUCCESS [24.360s]

      [INFO] WildFly: Deployment Repository .................... SUCCESS [0.906s]

      [INFO] WildFly: Version .................................. SUCCESS [0.750s]

      [INFO] WildFly: Process Controller ....................... SUCCESS [2.484s]

      [INFO] WildFly: Command line interface ................... SUCCESS [8.922s]

      [INFO] WildFly: Patching Core ............................ SUCCESS [9.610s]

      [INFO] WildFly: Platform MBean integration ............... SUCCESS [2.656s]

      [INFO] WildFly: Domain Management ........................ SUCCESS [47.500s]

      [INFO] WildFly: Domain HTTP Interface .................... SUCCESS [0.031s]

      [INFO] WildFly: Domain HTTP Interface .................... SUCCESS [1.954s]

      [INFO] WildFly: Network .................................. SUCCESS [1.140s]

      [INFO] WildFly: Remoting Subsystem ....................... SUCCESS [2.031s]

      [INFO] WildFly: Server ................................... SUCCESS [9.000s]

      [INFO] WildFly: Management Client Content ................ SUCCESS [0.969s]

      [INFO] WildFly: Common Code for Subsystem and Non-subsystem Test Harness  SUCCESS [2.094s]

      [INFO] WildFly: Core Model Test Parent ................... SUCCESS [0.141s]

      [INFO] WildFly: Subsystem Test Harness ................... SUCCESS [2.250s]

      [INFO] WildFly: Subsystem Test Controller 7.1.2 .......... SUCCESS [1.453s]

      [INFO] WildFly: Subsystem Test Controller 7.2.0 .......... SUCCESS [0.625s]

      [INFO] WildFly: Subsystem Test POM ....................... SUCCESS [0.172s]

      [INFO] WildFly: Threading Subsystem ...................... SUCCESS [8.359s]

      [INFO] WildFly: Host Controller .......................... SUCCESS [10.125s]

      [INFO] WildFly: Core Model Test Parent ................... SUCCESS [0.172s]

      [INFO] WildFly: Core Model Test Framework ................ SUCCESS [1.406s]

      [INFO] WildFly: Domain HTTP Error Context ................ SUCCESS [0.516s]

      [INFO] WildFly: IO Subsystem ............................. SUCCESS [2.031s]

      [INFO] WildFly: Naming Subsystem ......................... SUCCESS [6.813s]

      [INFO] WildFly: JMX Subsystem ............................ SUCCESS [14.859s]

      [INFO] WildFly: Security Manager Subsystem ............... SUCCESS [3.078s]

      [INFO] WildFly: EE ....................................... SUCCESS [9.750s]

      [INFO] WildFly: JacORB Subsystem ......................... SUCCESS [10.610s]

      [INFO] WildFly: Transaction Subsystem .................... SUCCESS [7.578s]

      [INFO] WildFly: Clustering Subsystems .................... SUCCESS [0.078s]

      [INFO] WildFly: Common code for clustering subsystems .... SUCCESS [3.047s]

      [INFO] WildFly: JGroups Subsystem ........................ SUCCESS [7.672s]

      [INFO] WildFly: Infinispan Subsystem ..................... SUCCESS [25.203s]

      [INFO] WildFly: Security Subsystem ....................... SUCCESS [10.391s]

      [INFO] WildFly: Connector Subsystem ...................... SUCCESS [16.563s]

      [INFO] WildFly: Clustering public API .................... SUCCESS [0.578s]

      [INFO] WildFly: EJB Subsystem ............................ SUCCESS [27.547s]

      [INFO] WildFly: Web Common Classes ....................... SUCCESS [1.203s]

      [INFO] WildFly: Web Subsystem ............................ SUCCESS [5.547s]

      [INFO] WildFly: Web Services Subsystem ................... SUCCESS [0.031s]

      [INFO] WildFly: Web Services Server Integration Subsystem  SUCCESS [9.734s]

      [INFO] WildFly: Application Client Bootstrap ............. SUCCESS [2.813s]

      [INFO] WildFly: Config Assembly .......................... SUCCESS [1.781s]

      [INFO] WildFly: EJB Client BOM ........................... SUCCESS [0.047s]

      [INFO] WildFly: JMS Client BOM ........................... SUCCESS [0.531s]

      [INFO] WildFly: EJB and JMS client combined jar .......... SUCCESS [3.078s]

      [INFO] WildFly: Clustered Stateful Session Bean cache Infinispan provider  SUCCESS [2.407s]

      [INFO] WildFly: Singleton service API .................... SUCCESS [0.844s]

      [INFO] WildFly: Clustering API implementation ............ SUCCESS [3.281s]

      [INFO] WildFly: Web session clustering ................... SUCCESS [0.031s]

      [INFO] WildFly: Web session clustering SPI ............... SUCCESS [1.344s]

      [INFO] WildFly: Web session clustering - Infinispan service provider  SUCCESS [4.547s]

      [INFO] WildFly: Undertow ................................. SUCCESS [10.656s]

      [INFO] WildFly: Web session clustering - Undertow integration  SUCCESS [3.328s]

      [INFO] WildFly: EJB Container Managed Persistence Subsystem  SUCCESS [3.453s]

      [INFO] WildFly: Config Admin ............................. SUCCESS [5.563s]

      [INFO] WildFly: Batch Integration ........................ SUCCESS [0.156s]

      [INFO] WildFly: JBeret Integration ....................... SUCCESS [2.125s]

      [INFO] WildFly: Batch Integration Subsystem .............. SUCCESS [4.016s]

      [INFO] WildFly: Deployment Scanner ....................... SUCCESS [7.156s]

      [INFO] WildFly: Embedded ................................. SUCCESS [2.547s]

      [INFO] WildFly: JAXR Client .............................. SUCCESS [4.516s]

      [INFO] WildFly: JPA Subsystem ............................ SUCCESS [0.046s]

      [INFO] WildFly: JPA UTIL ................................. SUCCESS [0.438s]

      [INFO] WildFly: JPA Subsystem ............................ SUCCESS [10.688s]

      [INFO] WildFly: Weld Integration ......................... SUCCESS [10.390s]

      [INFO] WildFly: JAX-RS Integration ....................... SUCCESS [5.360s]

      [INFO] WildFly: JBoss Diagnostic Reporter ................ SUCCESS [0.062s]

      [INFO] WildFly: JDR ...................................... SUCCESS [4.719s]

      [INFO] WildFly: JSF ...................................... SUCCESS [0.047s]

      [INFO] WildFly: JSF Subsystem ............................ SUCCESS [5.406s]

      [INFO] WildFly: JSF Injection Handlers ................... SUCCESS [3.359s]

      [INFO] WildFly: JSR-77 Subsystem ......................... SUCCESS [5.094s]

      [INFO] WildFly: Logging Subsystem ........................ SUCCESS [26.250s]

      [INFO] WildFly: Mail subsystem ........................... SUCCESS [5.079s]

      [INFO] WildFly: Messaging Subsystem ...................... SUCCESS [39.859s]

      [INFO] WildFly: mod_cluster Subsystem .................... SUCCESS [0.610s]

      [INFO] WildFly: mod_cluster Extension .................... SUCCESS [7.281s]

      [INFO] WildFly: mod_cluster Undertow Integration ......... SUCCESS [3.828s]

      [INFO] WildFly: POJO Subsystem ........................... SUCCESS [5.750s]

      [INFO] WildFly: Service Archive Subsystem ................ SUCCESS [4.359s]

      [INFO] WildFly: System JMX Module ........................ SUCCESS [1.094s]

      [INFO] WildFly: XTS Subsystem ............................ SUCCESS [5.641s]

      [INFO] WildFly: RTS Subsystem ............................ SUCCESS [6.250s]

      [INFO] WildFly: Build .................................... SUCCESS [58.203s]

      [INFO] WildFly: Build Modular ............................ SUCCESS [0.375s]

      [INFO] WildFly: Subsystem Test Framework Tests ........... SUCCESS [8.876s]

      [INFO] WildFly: Arquillian ............................... SUCCESS [0.812s]

      [INFO] WildFly: Arquillian TestEnricher MSC .............. SUCCESS [1.375s]

      [INFO] WildFly: Arquillian Common ........................ SUCCESS [3.188s]

      [INFO] WildFly: Arquillian Embedded Container ............ SUCCESS [15.609s]

      [INFO] WildFly: Arquillian Protocol JMX .................. SUCCESS [5.563s]

      [INFO] WildFly: Arquillian Managed Container ............. SUCCESS [23.781s]

      [INFO] WildFly: Arquillian Remote Container .............. SUCCESS [1.937s]

      [INFO] WildFly: Exported Java EE Specification APIs ...... SUCCESS [0.047s]

      [INFO] WildFly: Arquillian TestNG Integration ............ SUCCESS [20.875s]

      [INFO] WildFly: Arquillian Common Domain ................. SUCCESS [2.188s]

      [INFO] WildFly: Arquillian Remote Domain Container ....... SUCCESS [1.844s]

      [INFO] WildFly: Arquillian Managed Domain Container ...... FAILURE [14:52.490s]

      [INFO] WildFly: Core Model Test Controller 7.1.2 ......... SKIPPED

      [INFO] WildFly: Core Model Test Controller 7.2.0 ......... SKIPPED

      [INFO] WildFly: Core Model Test Controller Optional ...... SKIPPED

      [INFO] WildFly: Core Model Tests ......................... SKIPPED

      [INFO] WildFly: Distribution ............................. SKIPPED

      [INFO] WildFly: JSF Multi-JSF installer .................. SKIPPED

      [INFO] WildFly: Remoting Subsystem Test .................. SKIPPED

      [INFO] WildFly: Validation Tests for Exported Java EE Specification APIs  SKIPPED

      [INFO] WildFly: Web Services Tests Integration Subsystem . SKIPPED

      [INFO] WildFly Test Suite: Shared ........................ SKIPPED

      [INFO] WildFly Test Suite: Aggregator .................... SKIPPED

      [INFO] WildFly Test Suite: Integration ................... SKIPPED

      [INFO] WildFly Test Suite: Integration - Smoke ........... SKIPPED

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

      [INFO] BUILD FAILURE

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

      [INFO] Total time: 26:14.541s

      [INFO] Finished at: Wed Oct 23 18:29:11 PKT 2013

      [INFO] Final Memory: 238M/247M

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

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on project wildfly-arquillian-container-domain-managed: There are test failures.

      [ERROR]

      [ERROR] Please refer to J:\Softwares\Development\JBOSS\wildfly-master\arquillian\container-managed-domain\target\surefire-reports for the individual test results.

      [ERROR] -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

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

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

      [ERROR]

      [ERROR] After correcting the problems, you can resume the build with the command

      [ERROR]   mvn <goals> -rf :wildfly-arquillian-container-domain-managed

      Press any key to continue . . .

       

      I have also attached the log file from path "wildfly-master\arquillian\container-managed\target\jbossas\standalone\log".

        • 1. Re: WildFly Build Failure
          Tomaz Cerar Master

          Looks like you have some instance of wildfly / AS7 already running while trying to build/test.

           

          make sure no other instances are running before you run testsuite.

           

          if you just want to build wildfly, without executing testsuite, you can just build with -DskipTests flag.

           

          mvn clean install -DskipTests

          1 of 1 people found this helpful
          • 2. Re: WildFly Build Failure
            Nabeel Bukhari Newbie

            Hi Tomaz,

            Sorry for late reply, I checked and no other instances are running before making build. During build process, the wildfly starts and stops instances automatically, but in case of this test case, there is no instance running by wildfly build. I verified using CurrPort and no port 8080 was open during this test case which caused it to fail. I used mvn clean install -DskipTests and the build completed successfully.