axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r619459 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
Date Thu, 07 Feb 2008 15:36:57 GMT
Author: dims
Date: Thu Feb  7 07:36:56 2008
New Revision: 619459

URL: http://svn.apache.org/viewvc?rev=619459&view=rev
Log:
If we can't find the wsdl in the same class loader, then try the context class loader

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java?rev=619459&r1=619458&r2=619459&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
Thu Feb  7 07:36:56 2008
@@ -42,6 +42,7 @@
 import org.apache.axis2.jaxws.i18n.Messages;
 import org.apache.axis2.jaxws.util.WSDL4JWrapper;
 import org.apache.axis2.jaxws.util.WSDLWrapper;
+import org.apache.axis2.jaxws.util.ClassLoaderUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -811,6 +812,14 @@
         URL url = null;
         if (loader != null) {
             url = loader.getResource(wsdlLocation);
+        }
+        
+        // Try the context class loader
+        if(url == null){
+            ClassLoader classLoader = ClassLoaderUtils.getContextClassLoader(null);
+            if(classLoader != loader){
+                url = classLoader.getResource(wsdlLocation);
+            }
         }
 
         // 2) As a fully specified URL



---------------------------------------------------------------------
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