axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahalakshmi Ananthanarayanan <manan...@cisco.com>
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.
 
 
  Pointer http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14457
  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: 
javax/servlet/ServletContext
[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(Class.java:1627)
    at java.lang.Class.getMethod0(Class.java:1746)
    at java.lang.Class.getDeclaredMethod(Class.java:1233)
    at org.apache.commons.discovery.tools.ClassUtils.findPublicStaticMethod
(ClassUtils.java:112)
    at 
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory
(EngineConfigurationFactoryFinder.java:214)
    at 
org.apache.axis.configuration.EngineConfigurationFactoryFinder.access$300
(EngineConfigurationFactoryFinder.java:92)

  Regards,
  Mahalakshmi .


Mime
View raw message