How to get Axis working in Weblogic 6.1sp2
Weblogic has some problems with it's classloader. To get the example webapp working, do the following:
{{{ 1. Copy the webapps/axis directory from the Axis distribution to the Weblogic applications directory
- Remove all manifests from the jar files (see script for help)
- (Weblogic has a problem with Class-Path -definitions)
- Rename log4j-1.2.8.jar (in the directory WEB-INF/lib) to log4j_1_2_8.jar
- (Weblogic doesn't like multiple dots in the jar names)
- Deploy the application }}}
Script for removing manifests from the jars. Execute in the WEB-INF/lib -directory:
{{{ for FILE in *.jar; do
- zip -d $FILE META-INF/MANIFEST.MF META-INF/
- done }}}
To get .jws services to work, you should copy the tools.jar from the bea/jdk131/lib to the WEB-INF/lib directory, so that Axis has access to a compiler.
Another way to install Axis under WLS 6.1_sp1-4 is to have commons-discovery.jar, commons-logging.jar, saaj.jar and jaxrpc.jar in your startscript (startWebLogic.sh/cmd). In this case you do not need to change Axis jar-files