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/04/16 15:50:28 UTC

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

Author: dims
Date: Mon Apr 16 06:50:27 2007
New Revision: 529249

URL: http://svn.apache.org/viewvc?view=rev&rev=529249
Log:
let jar's url's thru as-is, add log.debug on a swallowed exception

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

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java?view=diff&rev=529249&r1=529248&r2=529249
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java Mon Apr 16 06:50:27 2007
@@ -40,6 +40,8 @@
 
     private final String FILE_PROTOCOL = "file";
 
+    private final String JAR_PROTOCOL = "jar";
+
     private ClassLoader classLoader;
     
     private static final Log log = LogFactory.getLog(URIResolverImpl.class);
@@ -125,7 +127,9 @@
                     }
                 }
             } catch (Exception e) {
-
+                if(log.isDebugEnabled()) {
+                    log.debug(e);
+                }
             }
         }
         if(is == null) {
@@ -223,6 +227,10 @@
             // Check for file
             else if (baseURL.getProtocol() != null && baseURL.getProtocol().equals(FILE_PROTOCOL)) {
                 url = new URL(baseURL.getProtocol(), baseURL.getHost(), resolvedURI.toString());
+            }
+            // Check for jar
+            else if (baseURL.getProtocol() != null && baseURL.getProtocol().equals(JAR_PROTOCOL)) {
+                url = new URL(resolvedURI.toString());
             }
         }
         catch (MalformedURLException e) {



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