Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resteasy Atom Links with Jackson instead of Jettison

Due to other requirements we need to use Jackson for JSON serialization. Unfortunately Jackson does not support Atom Links with RESTServiceDiscovery as stated in the documentation. Has anyone already build a workaround for this? Or any idea why it is not working with Jackson and how to fix it?

Our current approach is to use XML as output and then use a javascript library to transform XML to JSON.

like image 671
Leonard Brünings Avatar asked Jan 27 '26 11:01

Leonard Brünings


1 Answers

We were facing the same problem using JBossAS7. We ended switching from Jackson to Jettison by disabling Jackson in jboss-deployment-structure.xml:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
    <deployment>
        <exclusions>
          <module name="org.jboss.resteasy.resteasy-jackson-provider" />
        </exclusions>
    </deployment>
</jboss-deployment-structure>
like image 107
Michael Yakobi Avatar answered Jan 29 '26 00:01

Michael Yakobi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!