This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch 4.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/4.1.x-fixes by this push:
new 7e80cf900e [CXF-9195]align jaxb factory property name with jaxb4
7e80cf900e is described below
commit 7e80cf900e8b2518dadb6cf639e03a5db4c8955c
Author: Freeman Fang <[email protected]>
AuthorDate: Wed Jan 28 13:08:11 2026 -0500
[CXF-9195]align jaxb factory property name with jaxb4
(cherry picked from commit 486a3c27bb0521fca93e32a9fc0e82dc9b995c28)
---
.../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) {