You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2012/12/31 11:44:45 UTC
svn commit: r1427076 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/locator/DefaultOMMetaFactoryLocator.java
Author: veithen
Date: Mon Dec 31 10:44:45 2012
New Revision: 1427076
URL: http://svn.apache.org/viewvc?rev=1427076&view=rev
Log:
Added error logging.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/locator/DefaultOMMetaFactoryLocator.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/locator/DefaultOMMetaFactoryLocator.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/locator/DefaultOMMetaFactoryLocator.java?rev=1427076&r1=1427075&r2=1427076&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/locator/DefaultOMMetaFactoryLocator.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/locator/DefaultOMMetaFactoryLocator.java Mon Dec 31 10:44:45 2012
@@ -68,13 +68,17 @@ public final class DefaultOMMetaFactoryL
// Now discover the available implementations by looking for the axiom.xml descriptor.
log.debug("Starting class path based discovery");
+ Enumeration e;
try {
- Enumeration e = classLoader.getResources(ImplementationFactory.DESCRIPTOR_RESOURCE);
+ e = classLoader.getResources(ImplementationFactory.DESCRIPTOR_RESOURCE);
+ } catch (IOException ex) {
+ log.error("Failed to look up " + ImplementationFactory.DESCRIPTOR_RESOURCE + " from class loader", ex);
+ e = null;
+ }
+ if (e != null) {
while (e.hasMoreElements()) {
implementations.addAll(ImplementationFactory.parseDescriptor(loader, (URL)e.nextElement()));
}
- } catch (IOException ex) {
- // Ignore and continue
}
loadImplementations(implementations);