Skip navigation

This is a recording of how to build JBoss AS 5.1.0.GA from source, how to build its test suite and how to run the test suite.

 

Some of this information is partially available in the references https://community.jboss.org/wiki/HowToRunTheTestsuite and http://docs.jboss.org/process-guide/en/html/testsuite.html. These are however not up-to-date as described below.

 

Note that JBOSS_INSTALL in the following document deisgnates the root directory of the unpacked distribution of the JBoss AS.

Environment

JBoss AS 5.1.0.GA (jboss-5.1.0.GA-src.tar.gz) with Sun Java SE 1.6 on Ubuntu 11.10 (64-bit, workstation).

Environment details

> uname -a
Linux ragnar 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
> java -version
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Build the AS

First make the following three (3) changes to JBOSS_INSTALL/pom.xml


Note: This must be performed due to the fact that existing POM directly or indirectly references artifacts (e g maven-plugin-jboss-licensing, xdoclet:xjavadoc:jar:1.2.3, etc) that are not available (any more/currently) in in the repositories defined.


  1. Remove (comment out) the existing repositories in the repositories and pluginRepositories blocks.

  2. Add(!) the following repository to the pluginRepositories block:

    <pluginRepository>
        <id>repository.jboss.org</id>
        <name>JBoss Plugin Releases</name>
        <url>http://repository.jboss.org/nexus/content/repositories/releases</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </pluginRepository>
  3. Add(!) the following three repositories to the respoitories block:
    <repository>
        <id>repository.jboss.org</id>
        <name>JBoss Releases</name>
        <url>http://repository.jboss.org/nexus/content/repositories/releases</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>thirdparty.jboss.org</id>
        <name>JBoss Thirdparty Releases</name>
        <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
    
        </snapshots>
    </repository>
    <repository>
        <id>deprecated.jboss.org</id>
        <name>JBoss Thirdparty Releases</name>
        <url>https://repository.jboss.org/nexus/content/repositories/deprecated</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    

Now run the build command from the correct directory...

> cd JBOSS_INSTALL/build
> ./build.sh

Build testsuite

First edit the file JBOSS_INSTALL/testsuite/imports/sections/seam.xml and remove (or comment out) the two lines with the repositories (<remoterepository>) and add the following instead:

 

<remoterepository id="repository.jboss.org" url="http://repository.jboss.org/nexus/content/repositories/releases"/>

 

Now build the testsuite from the correct directory...

Note: Second line might not be necessary depending on how your file rights are set.

> cd JBOSS_INSTALL/testuite
> chmod +x build.sh
> ./build.sh

Run testsuite

Firsts run

 

> sudo route add -net 224.0.0.0 netmask 240.0.0.0 lo

 


Secondly [This must performed to get cluster-tests operational] create the file JBOSS_INSTALL/testsuite/local.properties and add the following content - and set YourHost to whatever your host is named.

Note: Mine was set to: ragnar

node0=localhost
node1=YourHost

 

Thirdly [This might not be necessary on all hosts] increase the timout (time to wait) for server start by issuing the following command.

Note: increase the timeout value as needed.

> export ANT_OPTS="-Djbossas.startup.timeout=240"

Now run the testsuite from the correct directory...

> cd JBOSS_INSTALL/testuite
> ./build.sh tests

Results

Complete output (stdout) from tests: See attached file - jboss510.log.gz

 

Tests failures and warnings (stderr) - causes unknown for now


[junit] Test org.jboss.test.cmp2.optimisticlock.test.OptimisticLockUnitTestCase FAILED
[junit] Test org.jboss.test.jca.test.PreFillPoolingUnitTestCase FAILED
[junit] Test org.jboss.test.security.test.SRPLoginModuleUnitTestCase FAILED
[junit] Test org.jboss.test.security.test.SRPUnitTestCase FAILED
[junit] Test org.jboss.test.profileservice.test.PlatformMBeanUnitTestCase FAILED
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-udp-SYNC-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-udp-SYNC-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-udp-BR-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-udp-BR-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-tcp-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-tcp-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-tcp-SYNC-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-tcp-SYNC-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-tcp-BR-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-tcp-BR-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/tomcat-federation not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/binding-manager1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/binding-manager2 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/jbossmessaging not found.
[junit] Test org.jboss.test.jbossmessaging.clustertest.ClusteredTestCase FAILED
[junit] Test org.jboss.test.compatibility.test.SerialVersionUIDUnitTestCase FAILED (crashed)
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/scoped-aop-jdk50 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/jts not found.
[junit] Test org.jboss.test.jca.test.PreFillPoolingUnitTestCase FAILED
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/classloader-leak not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-classloader-leak-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-5.1.0.GA-src/testsuite/output/resources/test-configs/cluster-classloader-leak-1 not found.