-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Component/s: JAX-WS Runtime
-
Labels:None
-
Estimated Complexity:Unknown
org.apache.cxf.catalog.OASISCatalogManager.getResolver() silently fails if any exceptions are thrown during the try{} block.
This makes resolving issues difficult as Exceptions that contain important information are ignored.
For example, if org.apache.xml.resolver.CatalogManager is not found on the classpath (as it is in an external library), a CNFE exception is swallowed and calls to loadCatalogs() will fail to load catalogs bundled with an application. As no errors/warnings are logged, it appears that the jax-ws-catalog.xml has been loaded correctly.
IMHO, since there is already a logger defined in the OASISCatalogManager class, there should be at least an WARN message logged for exceptions within the try{} block to help resolve issues like CNFE exceptions.