Configure Jackson for Glassfish 4.1

Needed to configure Jackson for Glassfish 4.1 and was getting errors due to another library (MOXY) being used.

Here is how to disable it. First, we implement the

interface like so:

Next, we configure our web service with a


object, like so:

There is also a


to register a bunch of services.

Also, here is the test code for the JacksonFeature class:

Leave a Reply

Your email address will not be published. Required fields are marked *