tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cocorossello <>
Subject Re: Cannot get TomEE to use Jackson
Date Thu, 10 Aug 2017 13:41:42 GMT
The error is a problem with hibernate and lazy collections. Try returning
just a mocked object, not from database.

Jackson works  in tomee, to get it working you need a @Producer

public class JacksonJSONProvider extends
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider {

    public JacksonJSONProvider() {
        setMapper(JsonParser.defaultJacksonObjectMapper()); //Your mapper



View this message in context:
Sent from the TomEE Users mailing list archive at

View raw message