You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/02/07 16:36:57 UTC

svn commit: r619459 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java

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