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

Reply via email to