You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/06/04 22:40:04 UTC

svn commit: r544252 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java

Author: dims
Date: Mon Jun  4 13:40:03 2007
New Revision: 544252

URL: http://svn.apache.org/viewvc?view=rev&rev=544252
Log:
Fix for AXIS2-2663 - Class loading issues when the libraries are placed in the service archive

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java?view=diff&rev=544252&r1=544251&r2=544252
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java Mon Jun  4 13:40:03 2007
@@ -80,12 +80,11 @@
                  */
                 completeFileName = completeFileName.replace('.', '/').concat(".class");
                 raw = getBytes(completeFileName);
-                if (raw == null) {
-                    throw new ClassNotFoundException("Class Not found : " + name);
-                }
             } catch (Exception ex) {
-                // TODO: This, or throw new ClassNotFoundException?
                 throw new RuntimeException(ex);
+            }
+            if (raw == null) {
+                throw new ClassNotFoundException("Class Not found : " + name);
             }
             clazz = defineClass(name, raw, 0, raw.length);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org