axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r545518 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java
Date Fri, 08 Jun 2007 14:26:41 GMT
Author: dims
Date: Fri Jun  8 07:26:40 2007
New Revision: 545518

URL: http://svn.apache.org/viewvc?view=rev&rev=545518
Log:
Fix for AXIS2-2679 - DeploymentClassloader unable to access resources from parent classloader
/ try fallback to parent's getResource as per user feedback

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=545518&r1=545517&r2=545518
==============================================================================
--- 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
Fri Jun  8 07:26:40 2007
@@ -247,7 +247,10 @@
     }
 
     public InputStream getResourceAsStream(String name) {
-        URL url =findResource(name);
+        URL url = findResource(name);
+        if(url == null) {
+            url = getResource(name);
+        }
         if(url!=null){
             try {
                 return url.openStream();



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


Mime
View raw message