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:08:28 UTC

(cxf) branch main 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 main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new 486a3c27bb [CXF-9195]align jaxb factory property name with jaxb4
486a3c27bb is described below

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

    [CXF-9195]align jaxb factory property name with jaxb4
---
 .../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) {