2017-08-10 19:06 GMT+02:00 Thiesius <capek...@hotmail.com>: > I wasn't pointing out the problem with lazy collections. I had @JsonIgnore > on > that property. But since the Jackson didn't kick in, Johnzon skipped the > annotation and tried to serialize the property. > > Anyways the *problem was indeed with the @Provider* annotation. Thank you > very much for helping me fixing this. > > Anyways why is it such a hassle to get it working under TomEE? > > Well it is not linked to tomee by itself. Jackson defines himself as being a fallback provider so used if no other provider matches the request (based on JAX-RS 2 rules). Since johnzon is defined to match json as the last one (so if you drop another json provider it is taken automatically) it has a higher priority then jackson. If jackson defines himself as matching json then it would be transparent.
> > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/Cannot-get-TomEE-to-use-Jackson-tp4682409p4682416.html > Sent from the TomEE Users mailing list archive at Nabble.com. >