axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser ArrayDeserializer.java
Date Fri, 08 Feb 2002 23:03:36 GMT
gdaniels    02/02/08 15:03:36

  Modified:    java/src/org/apache/axis/message SOAPFaultBuilder.java
               java/src/org/apache/axis/encoding/ser ArrayDeserializer.java
  Log:
  Make sure we can pick up classes from the context's classloader....
  
  Revision  Changes    Path
  1.17      +2 -1      xml-axis/java/src/org/apache/axis/message/SOAPFaultBuilder.java
  
  Index: SOAPFaultBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPFaultBuilder.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- SOAPFaultBuilder.java	26 Jan 2002 02:47:22 -0000	1.16
  +++ SOAPFaultBuilder.java	8 Feb 2002 23:03:36 -0000	1.17
  @@ -115,7 +115,8 @@
           AxisFault f = null;
           if (faultClassName != null) {
               try {
  -                Class exClass = Class.forName(faultClassName);
  +                ClassLoader cl = context.getMessageContext().getClassLoader();
  +                Class exClass = Class.forName(faultClassName, true, cl);
                   if (AxisFault.class.isAssignableFrom(exClass)) {
                       f = (AxisFault) exClass.newInstance();
                       f.setFaultCode(faultCode);
  
  
  
  1.3       +3 -1      xml-axis/java/src/org/apache/axis/encoding/ser/ArrayDeserializer.java
  
  Index: ArrayDeserializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/ArrayDeserializer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ArrayDeserializer.java	7 Feb 2002 23:23:11 -0000	1.2
  +++ ArrayDeserializer.java	8 Feb 2002 23:03:36 -0000	1.3
  @@ -219,8 +219,10 @@
                   getClassForQName(defaultItemType);
               if (arrayItemClass != null) {
                   try {
  +                    ClassLoader cl = 
  +                            context.getMessageContext().getClassLoader();
                       arrayClass = Class.forName(JavaUtils.getLoadableClassName(
  -                      arrayItemClass.getName() + "[]"));   
  +                            arrayItemClass.getName() + "[]"), true, cl);   
                   } catch (Exception e) {
                       throw new SAXException(
                          JavaUtils.getMessage("noComponent00",  "" + defaultItemType));
  
  
  

Mime
View raw message