Axis2 Usage Notes
How to install or upgrade Axis2 + rampart.mar
To Build
The OSCARS code uses the the WSSE functionality provided by the
ramapart.mar to digitally sign and verify SOAP messages. So when you
install axist2 you must include the rampart.mar.
Download the axis2 distribution from http://ws.apache.org/axis2 and the
rampart module from
http://ws.apache.org/axis2/modules/rampart/1_1/security-module.html.
Extract the zip files and follow the instructions in the
README.txt in the rampart-1.1.zip file to copy the required
libraries to
the main "lib" dir of Axis2.
In conf/axis2.xml engage rampart, change change DrillDownToRootCause to true and
change sendStackTraceDetails
to true
Then build an axis2.war file that includes
rampart.war
You should then copy all the axis2 jar files into OSCARS/lib/axis2 and
the rampart jar files into OSCARS/lib.
Now move aside the src/net/es/osccars//{oscars,wsdlTypes} directories
and run ant wsdl2jJava. We have hand edited the OSCARSSkeleton.java,
AAAFaultMessageExcpetion and BSSFaultMessageException, so you need to
replace the newely genertated files with the old ones, making sure
that none of the interfaces changed.
Clean and rebuild the OSCARS compile tree and OSCARS.aar.
To Install
Shutdown tomcat;
Save webapps/axis2/WEB-INF/classes/log4j.properties;
Delete webapps/axis2/WEB-INF/axis2.war and
axis2 directory
Copy the new axis.2war file into /usr/local/jarkarta/webapps/
Start Tomcat, which will create the new axis2 directory,
Copy the OSCARS.aar into into
/usr/local/jarkarta/webapps/axis2/WEB-INF/services
Copy the saved log4j.properties back into
webapps/axis2/WEB-INF/classes/log4j.properties
Restart Tomcat.