From 2055a9f21a280e986265c3cd9b0ff9b90ef99868 Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 27 Oct 2017 17:20:06 +0000 Subject: [PATCH] Missing registration of JaxbAnnotationModule for Jackson added git-svn-id: https://svn.libreccm.org/ccm/trunk@5090 8810af33-2d31-482b-a856-94f89814c4df --- ccm-core/src/com/arsdigita/portation/AbstractMarshaller.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ccm-core/src/com/arsdigita/portation/AbstractMarshaller.java b/ccm-core/src/com/arsdigita/portation/AbstractMarshaller.java index 6c6eaf198..1f2cb162f 100644 --- a/ccm-core/src/com/arsdigita/portation/AbstractMarshaller.java +++ b/ccm-core/src/com/arsdigita/portation/AbstractMarshaller.java @@ -21,7 +21,9 @@ package com.arsdigita.portation; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule; +import com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule; import com.fasterxml.jackson.dataformat.xml.XmlMapper; + import org.apache.log4j.Logger; import java.io.File; @@ -60,6 +62,7 @@ public abstract class AbstractMarshaller

{ JacksonXmlModule module = new JacksonXmlModule(); module.setDefaultUseWrapper(false); xmlMapper = new XmlMapper(module); + xmlMapper.registerModule(new JaxbAnnotationModule()); if (indentation) { xmlMapper.enable(SerializationFeature.INDENT_OUTPUT); }