public static URL lookupCatalogFiles() throws IOException
   {
      URL url = null;
      //JAXWS-2.-0 spec, Line 27:the current context class loader MUST be used to
      //retrieve all the resources with the specified name
      ClassLoader loader = Thread.currentThread().getContextClassLoader();

      for (int i = 0; i < catalogFilesNames.length; i++)
      {
         url = loader.getResource(catalogFilesNames[i]);
         //use the first hit
         if (url != null)
         {
            break;
         }
      }

      return url;
   }
public static URL lookupCatalogFiles ( ) throws IOException { URL url = null ; ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; for ( int i = 0 ; i < catalogFilesNames . length ; i ++ ) { url = loader . getResource ( catalogFilesNames [ i ] ) ; if ( url != null ) { break ; } } return url ; }
Seach the path for oasis catalog files. The classpath of
<code>Thread.currentThread().getContextClassLoader()</code>
is used for the lookup.
@return the url where the <code>jax-ws-catalog.xml</code> is located
@throws IOException if the catalog files cannot be loaded