How to set up a working Axis2/C development environment

The full Axis2/C development environment requires the Axis2/C bundle, and some Java libraries if you want to generate sources/interfaces. The Java libraries can be found in the Axis2/Java package, so the best is if you download and install both bundles.

Environment variables

First, we set up the required environment variables (customize them if needed). The safest is if you set them for the runtime environment as well.

# The desired root of the Axis2/C installation
export AXIS2C_HOME
# The desired root of the Axis2/Java installation
export AXIS2_HOME
# The Axis2/C runtime libraries
# JAVA_HOME: this is the SLC4 distribution default, change it if needed
export JAVA_HOME
export PATH

Download and compile Axis2/C

tar -zxf axis2c-src-1.5.0.tar.gz
mkdir -p $AXIS2C_HOME
pushd axis2c-src-1.5.0
./configure  --prefix=$AXIS2C_HOME --enable-openssl=yes
make install
chmod +x $AXIS2C_HOME/bin/tools/wsdl2c/

Obtain Axis2/Java

Now, you have two options: download the latest Axis2/Java official release or download and build it form the Apache Subversion repository. You should consider the Subversion method if you want to develop servers in Axis2/C with custom SOAP fault, because the latest release contains code generation support for the custom faults. The previous sentence was valid when I created this document, and the latest official Axis2/Java version was 1.4.1. The fault support appeared in the sources on 9 February, 2009.

Method 1: Obtain the latest Axis2/Java release

mv axis2-1.4.1 $AXIS2_HOME

Method 2: Build Axis2/Java from Apache Subversion repository

To build Axis2/Java, you need Subversion and Ant installed as well as a Java development environment (version > 1.4) with JAVA_HOME set properly.

You need to download Apache Maven as well.

export MAVEN_HOME=$PWD/apache-maven-2.0.9
tar -jxf apache-maven-2.0.9-bin.tar.bz2

Now, we can build Axis2/Java (will take a while...)

svn co $AXIS2_HOME
pushd $AXIS2_HOME
mvn clean install

-- ZsoltMolnar - 06 Feb 2009

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2009-02-27 - ZsoltMolnar
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EGEE All webs login

This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Ask a support question or Send feedback