Site hosted by Build your free website today!

Tips when setting up Axis2-1.2 on Weblogic8.1

(Last minute work ... still very messy)

The intent of this site is just to provide some tips for desperate developers,
to save your time so you don't repeat my mistakes and spent countless hours debugging Axis2,
so you can spend more quality time with your family :D.

1. Currently Axis2-1.2 is not compatible with Rampart 1.1 (currently this is latest release available on Axis site).
This Rampart will get result in the following error

Exception in thread "main" java.lang.NoSuchMethodError:
at org.apache.axis2.engine.Phase.invoke(

If you are not very familiar with Maven & Subversion, or if you are too busy (or lazy) to get the latest source and do the build,
you are welcome to use the rampart that I built on 13/05/07 - 17:31 (Sydney).
It works fine for Axis2-1.2 and good enough while waiting for the official Rampart release.
I am not sure what version this should be (definitely higher than 1.1) so I just name it 1.1.x
Click here to download

Make sure you remove axis2-security-1.1.jar that comes with (under /lib).
Otherwise, the classes from the jar will be used instead and you will get the error again.

2. If you decide to deploy your archive as an unexploded .war or .ear, you need to place the modules outside. The archive will contain /conf, /services and somewhere in your filesystem you need to have a directory that contains /services and /modules. When you initialise your AxisServlet you need to specify the location of the directory.

So if, for example, you have a directory called C:/bla which has /services & /modules.
The initialisation should be as follow:
<display-name>Apache-Axis Servlet</display-name>

3. Avoid getting lots of XML-related errors, SAX parser errors specifically, by informing weblogic to use the libraries that come with Axis2. You do that by placing weblogic.xml you create on /WEB-INF. The weblogic.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "">

Last Updated: 16/05/07
Updated By: Alvin Haryadi
Alvin is a Java Developer, a Naruto fan, bible reader,
someone who is too lazy to grab source code from open-source project and build it unless he has to.