Wednesday, June 25, 2008

Axis: installation

Axis installation

http://ws.apache.org/axis/


ulucas@LTBPK05D1 /cygdrive/c/opt/axis
$ wget http://apache.mirror99.com/ws/axis/1_4/axis-bin-1_4.tar.gz
13:08:35 (267.78 KB/s- `axis-bin-1_4.tar.gz' saved [8093928/8093928]


ulucas@LTBPK05D1 /cygdrive/c/opt/axis
$ ls
axis-bin-1_4.tar.gz

ulucas@LTBPK05D1 /cygdrive/c/opt/axis
$ gunzip axis-bin-1_4.tar.gz

ulucas@LTBPK05D1 /cygdrive/c/opt/axis
$ ls
axis-bin-1_4.tar

ulucas@LTBPK05D1 /cygdrive/c/opt/axis
$ tar xfv axis-bin-1_4.tar




in your ~/bashrc set up the following variables (make sure you re-run the bashrc):

export AXIS_HOME=/opt/axis/axis-1_4
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/axis-ant.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/axis.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/commons-discovery-0.2.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/commons-logging-1.0.4.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/jaxrpc.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/log4j-1.2.8.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/saaj.jar
export CLASS_PATH=$CLASS_PATH:$AXIS_HOME/lib/wsdl4j-1.5.1.jar

export CLASS_PATH=$CLASS_PATH:$MAVEN_REPO/javax/activation/activation/1.1/activation-1.1.jar
export CLASS_PATH=$CLASS_PATH:$MAVEN_REPO/javax/mail/mail/1.3.3_01/mail-1.3.3_01.jar 

export tcpmon="java org.apache.axis.utils.tcpmon"
export wsdl2java="java org.apache.axis.wsdl.WSDL2Java -t "


Be aware Axis 4.1.1 brings dependency for the AXIS 1.2-RC1.jar which is NOT compatible with the newest AXIS 1.4!!!
add dependencies to the project, this will copy the jars to your local box ~/.m2/repository:


   <dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>apache-activemq</artifactId>
    <version>4.1.1</version>
   </dependency>

   <dependency>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
    <version>1.3.3_01</version>
   </dependency>
   <dependency>
    <groupId>javax.activation</groupId>
    <artifactId>activation</artifactId>
    <version>1.1</version>
   </dependency>
   <dependency>
    <groupId>xerces</groupId>
    <artifactId>xerces</artifactId>
    <version>2.4.0</version>
   </dependency>


Axis installation is mentioned on: AXIS