You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2026/01/28 18:13:30 UTC

(cxf) branch 4.0.x-fixes updated: [CXF-9195]align jaxb factory property name with jaxb4

This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch 4.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/4.0.x-fixes by this push:
     new 80d68f9afa [CXF-9195]align jaxb factory property name with jaxb4
80d68f9afa is described below

commit 80d68f9afa247993f824645e2bc234318847b82e
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Wed Jan 28 13:08:11 2026 -0500

    [CXF-9195]align jaxb factory property name with jaxb4
    
    (cherry picked from commit 486a3c27bb0521fca93e32a9fc0e82dc9b995c28)
    (cherry picked from commit 7e80cf900e8b2518dadb6cf639e03a5db4c8955c)
---
 .../jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java b/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
index 22bad1dbcb..131d2fe3a0 100644
--- a/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
+++ b/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
@@ -328,7 +328,7 @@ class JAXBContextInitializer extends ServiceModelVisitor {
                     LOG.info("Class " + claz.getName() + " does not have a default constructor which JAXB requires.");
                 }
                 Object factory = createFactory(claz);
-                unmarshallerProperties.put("com.sun.xml.bind.ObjectFactory", factory);
+                unmarshallerProperties.put("org.glassfish.jaxb.core.ObjectFactory", factory);
                 cls = claz;
             }
             if (null != cls) {