Paying attention to my debugging has uncovered the problem.
The loader was throwing a java.lang.ExceptionInInitializerError
(missing some settings needed during static initialization)
in org.apache.axis.util.ClassUtils.forName this gets interpreted
as a ClassNotFoundException, with the causing Error dropped :(
try {
// Get the class within a doPrivleged block
Object ret =
AccessController.doPrivileged(
new PrivilegedAction() {
public Object run() {
try {
return Class.forName(className, true, loader);
} catch (Throwable e) {
return e;
}
}
});
// If the class was located, return it. Otherwise throw exception
if (ret instanceof Class) {
return (Class) ret;
} else if (ret instanceof ClassNotFoundException) {
throw (ClassNotFoundException) ret;
} else {
throw new ClassNotFoundException(_className);
}
On Thu, 2004-03-18 at 09:03, [EMAIL PROTECTED] wrote:
> I'm rather new to axis. I have got the happyaxis page working, and
> created my own EightBall webservice similar to:
>
> http://www-106.ibm.com/developerworks/webservices/library/ws-eight/
>
> Which works as expected.
>
> Once I add in some of my company's reusable classes I get a
> ClassNotFoundException. I have tried putting the reusable jar (and
> supporting jars) in webapps/axis/lib and then tomcat/common/lib with
> no joy.
>
> I debugged the service and can see my "MagicEightBall" class listed
> in the WebApp classloader, yet the native forName0 won't load it.
>
> We are using j2sdk1.4.2_03 on solaris, with Tomcat 5.0.19 and Axis 1.1.
>
> Anyone have any suggestions?
>
>
>
>