cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r659648 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
Date Fri, 23 May 2008 20:26:02 GMT
Author: bimargulies
Date: Fri May 23 13:26:01 2008
New Revision: 659648

URL: http://svn.apache.org/viewvc?rev=659648&view=rev
Log:
Try harder to avoid blowing up for old XML parsers.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java?rev=659648&r1=659647&r2=659648&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java Fri
May 23 13:26:01 2008
@@ -126,9 +126,11 @@
         DocumentBuilderFactory factory = super.createDocumentBuilderFactory(validationMode,
namespaceAware);
         try {
             factory.setFeature("http://apache.org/xml/features/dom/defer-node-expansion",
false);
-        } catch (ParserConfigurationException pce) {
-            // blank
+        } catch (Exception e) {
+            // we can get all kinds of exceptions from this
+            // due to old copies of Xerces and whatnot.
         }
+        
         return factory;
     }
     



Mime
View raw message