[jboss-dev-forums] [JBoss Web Services Development] - JBossWS - Building From Source

Alessio Soldano do-not-reply at jboss.com
Mon Mar 26 06:11:34 EDT 2012


Alessio Soldano [https://community.jboss.org/people/asoldano] modified the document:

"JBossWS - Building From Source"

To view the document, visit: https://community.jboss.org/docs/DOC-13547

--------------------------------------------------------------
This page documents the *Maven* based build that we use *since jbossws-3.0.2*. See the  https://community.jboss.org/docs/DOC-13514 Mavenization page for details regarding configuring you Maven environment. The Ant based build of previous versions, is documented  https://community.jboss.org/docs/DOC-13548 here.
** 
 #Checkout_and_build_JBossAS Checkout and build JBossAS


*** 
 #Run_jboss Run jboss


** 
 #Checkout_and_build_JBossWSCXF Checkout and build JBossWS-CXF


*** 
 #_Edit_profilesxml_JBossWS_3x_only  Edit profiles.xml (JBossWS 3.x only)


*** 
 #BuildDeploy Build/Deploy


*** 
 #Run_the_smoke_tests Run the smoke tests


** 
 #Checkout_and_build_JBossWSNative Checkout and build JBossWS-Native


*** 
 #Edit_profilesxml_JBossWS_3x_only Edit profiles.xml (JBossWS 3.x only)


*** 
 #BuildDeploy_207011 Build/Deploy


*** 
 #Run_the_smoke_tests_997924 Run the smoke tests



h2. Checkout and build JBossAS
For building *JBoss AS 7* series, have a look at  https://community.jboss.org/docs/DOC-15596 https://community.jboss.org/wiki/HackingOnAS7

For *previous JBoss AS versions* instead:
   svn co http://anonsvn.jboss.org/repos/jbossas/trunk
   cd trunk
   build/build.sh

For more information, see  http://wiki.jboss.org/wiki/Wiki.jsp?page=SVNRepository SVNRepository

h3. Run jboss
Before you start jboss, you should follow the deploy steps for a supported stack (see below).
Then start the application server using the scripts available for that.

h2. Checkout and build JBossWS-CXF
   svn co http://anonsvn.jboss.org/repos/jbossws/stack/cxf/trunk jbossws-cxf

For more information, see  https://community.jboss.org/docs/DOC-13526 Subversion
h3. ** Edit profiles.xml (JBossWS 3.x only)
    <profile>
      <id>jboss-home-profile</id>
      <activation>
        <property>
          <name>user.name</name>
        </property>
      </activation>
      <properties>
        <jboss421.home>/home/tdiesler/svn/jbossas/tags/JBoss_4_2_1_GA/build/output/jboss-4.2.1.GA</jboss421.home>
        <jboss422.home>/home/tdiesler/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA</jboss422.home>
        <jboss423.home>/home/tdiesler/svn/jbossas/branches/Branch_4_2/build/output/jboss-4.2.3.GA</jboss423.home>
        <jboss500.home>/home/tdiesler/svn/jbossas/tags/JBoss_5_0_0_Beta4/build/output/jboss-5.0.0.Beta4</jboss500.home>
        <jboss501.home>/home/tdiesler/svn/jbossas/trunk/build/output/jboss-5.0.0.CR1</jboss501.home>
      </properties>
    </profile>


Starting from JBossWS 4, the build is supporting Maven 3, which made the use of profiles.xml deprecated.As a consequence of that, you should actually be providing the jbossXYZ.home property on the command line when invoking mvn.h3. Build/Deploy
To deploy jbossws-cxf you run:
   cd jbossws-cxf
   ant deploy-jboss500


Starting from JBossWS-CXF 3.4.0 SpringFramework libraries are not installed by default. If still want that you need to run:
ant -Dspring=true deploy-jboss500


When jboss starts you should see something like
13:16:25,104 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
13:16:25,106 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200805051004)
...
13:18:01,278 INFO  [CXFServerConfig] JBoss Web Services - Stack CXF Runtime Client
13:18:01,279 INFO  [CXFServerConfig] 3.0.2-SNAPSHOT
...
13:18:09,355 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
13:18:09,389 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200805051004)] Started in 1m:44s:270ms

h3. Run the smoke tests
   cd jbossws-cxf
   mvn -Psmoketest,jboss501 test


Starting from JBossWS 4, the integration testsuites have been moved to 'integration-test' maven phase. So you need to use:

mvn -Psmoketest,jboss710 -Djboss710.home=path-to-jboss710 integration-test

You should expect to see no test failures. There might be a number of FIXME messages on the console. These are linked to open JIRA issues.
Tests that are known to fail should be excluded in the container specific exclude file. Note, if a test is excluded it is not even compiled and hence will not run in any of the ant test targets.

h2. Checkout and build JBossWS-Native
   svn co http://anonsvn.jboss.org/repos/jbossws/stack/native/trunk jbossws-native

For more information, see  https://community.jboss.org/docs/DOC-13526 Subversion

h3. Edit profiles.xml (JBossWS 3.x only)
    <profile>
      <id>jboss-home-profile</id>
      <activation>
        <property>
          <name>user.name</name>
        </property>
      </activation>
      <properties>
        <jboss421.home>/home/tdiesler/svn/jbossas/tags/JBoss_4_2_1_GA/build/output/jboss-4.2.1.GA</jboss421.home>
        <jboss422.home>/home/tdiesler/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA</jboss422.home>
        <jboss423.home>/home/tdiesler/svn/jbossas/branches/Branch_4_2/build/output/jboss-4.2.3.GA</jboss423.home>
        <jboss500.home>/home/tdiesler/svn/jbossas/tags/JBoss_5_0_0_Beta4/build/output/jboss-5.0.0.Beta4</jboss500.home>
        <jboss501.home>/home/tdiesler/svn/jbossas/trunk/build/output/jboss-5.0.0.CR1</jboss501.home>
      </properties>
    </profile>
Starting from JBossWS 4, the build is supporting Maven 3, which made the use of profiles.xml deprecated.As a consequence of that, you should actually be providing the jbossXYZ.home property on the command line when invoking mvn.
h3. Build/Deploy
To deploy jbossws-native you run:
   cd jbossws-native
   ant deploy-jboss501

When jboss starts you should see something like
09:32:09,581 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
09:32:09,583 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200805051004)
...
09:33:24,587 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core
09:33:24,588 INFO  [NativeServerConfig] 3.0.2-SNAPSHOT
...
09:33:32,318 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:33:32,341 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200805051004)] Started in 1m:22s:744ms

h3. Run the smoke tests
   cd jbossws-native
   mvn -Psmoketest,jboss501 test

You should expect to see no test failures.  There might be a number of FIXME messages on the console. These are linked to open JIRA issues.

Starting from JBossWS 4, the integration testsuites have been moved to 'integration-test' maven phase. So you need to use:

mvn -Psmoketest,jboss710 -Djboss710.home=path-to-jboss710 integration-test
--------------------------------------------------------------

Comment by going to Community
[https://community.jboss.org/docs/DOC-13547]

Create a new document in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2047]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120326/d7085961/attachment.html 


More information about the jboss-dev-forums mailing list