cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r724793 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
Date Tue, 09 Dec 2008 17:34:48 GMT
Author: dkulp
Date: Tue Dec  9 09:34:47 2008
New Revision: 724793

URL: http://svn.apache.org/viewvc?rev=724793&view=rev
Log:
Get the correct error out of the jaxb databinding

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java?rev=724793&r1=724792&r2=724793&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java (original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java Tue
Dec  9 09:34:47 2008
@@ -430,7 +430,8 @@
             try {
                 ctx = JAXBContext.newInstance(classes.toArray(new Class[classes.size()]),
map);
             } catch (JAXBException ex) {
-                if (map.containsKey("com.sun.xml.bind.defaultNamespaceRemap")) {
+                if (map.containsKey("com.sun.xml.bind.defaultNamespaceRemap")
+                    && ex.getMessage().contains("com.sun.xml.bind.defaultNamespaceRemap"))
{
                     map.put("com.sun.xml.internal.bind.defaultNamespaceRemap",
                             map.remove("com.sun.xml.bind.defaultNamespaceRemap"));
                     ctx = JAXBContext.newInstance(classes.toArray(new Class[classes.size()]),
map);



Mime
View raw message