axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahalakshmi Ananthanarayanan <>
Subject NoClassDefFoundError: ServletContext using jdk1.4.1 for Axis clients
Date Thu, 08 Jan 2004 13:45:07 GMT

 I would like to know the most earliest Name,Date and Description of the 
build , in which fix for bug # 14457
 is available .Kindly  reply  at your earliest.
  Bug #   14457
  Description of  the bug  Axis clients that run without "servlet.jar" 
get NoClassDefFoundError:

ServletContext when using jdk1.4.1.  This didn't happen with jdk1.3.1.  It 
looks like the method EngineConfigurationFactoryFinder.newFactory has specific 
handling code for NoClassDefFoundErrors at line 227 (Axis 1.0), but using 1.4, 
the error occurs slightly early, at line 214 where there is no handler.  I 
presume this is due to a difference in class loading in 1.4.

A work-around for 1.4 appears to be to include "servlet.jar" along with any 
client code.

Here's the stack for the failure.  Using 1.3, the handler at line 224 would 
have just logged the problem.

Exception in thread "main" java.lang.NoClassDefFoundError: 
[Loaded java.lang.StackTraceElement from /home/billg/jdk1.4.1/jre/lib/rt.jar]
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(
    at java.lang.Class.getMethod0(
    at java.lang.Class.getDeclaredMethod(

  Mahalakshmi .

View raw message