<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Configure ObjectMapper in JaxRS Whiteboard application</title>
  <link rel="self" href="https://liferay.dev/sv/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120700158" />
  <subtitle>Configure ObjectMapper in JaxRS Whiteboard application</subtitle>
  <id>https://liferay.dev/sv/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120700158</id>
  <updated>2026-05-10T16:24:02Z</updated>
  <dc:date>2026-05-10T16:24:02Z</dc:date>
  <entry>
    <title>RE: Configure ObjectMapper in JaxRS Whiteboard application</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120700579" />
    <author>
      <name>Andre Albert</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120700579</id>
    <updated>2021-03-30T12:27:17Z</updated>
    <published>2021-03-30T12:27:17Z</published>
    <summary type="html">&lt;p&gt;Ok, i realized that there was a osgi config
  file org.apache.aries.jax.rs.jackson.config existent, that
  automatically enables jackson objectmapper. This was the reason of my
  getSingletons ignored JsonProviders.&lt;/p&gt;
&lt;p&gt;Still, i am wondering who to configure the default json-provider (if
  used). But this is not critical for me anymore. &lt;/p&gt;</summary>
    <dc:creator>Andre Albert</dc:creator>
    <dc:date>2021-03-30T12:27:17Z</dc:date>
  </entry>
  <entry>
    <title>Configure ObjectMapper in JaxRS Whiteboard application</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120700157" />
    <author>
      <name>Andre Albert</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120700157</id>
    <updated>2021-03-29T11:16:07Z</updated>
    <published>2021-03-29T11:16:07Z</published>
    <summary type="html">&lt;p&gt;We are currently migration a 7.1 jaxrs application to 7.3 DXP. &lt;/p&gt;
&lt;p&gt;Previously, we add JacksonJsonProvider to our getSingletons() result
  to enable a pre-configured Jackson-JSON mapping. But using this in
  Liferay 7.3 our preconfigurations of the mapper are not applied. Even,
  if we dont not add the JacksonJsonProvier the object serialization
  still works, so i guess there is a default object mapper somewhere
  applied (in 7.1 we got the no-MessageBodyWriter exceptions in that case).&lt;/p&gt;
&lt;p&gt;How can we adjust the default Jackson provider in out
  application? The aim is to replace the LocalDate Serializer to
  serialize dates to [yyyy, mm, dd] array&lt;/p&gt;
&lt;p&gt;Many thanks and greetings&lt;/p&gt;
&lt;p&gt;Andre&lt;/p&gt;</summary>
    <dc:creator>Andre Albert</dc:creator>
    <dc:date>2021-03-29T11:16:07Z</dc:date>
  </entry>
</feed>
