I have a rest enabled web service exposed which returns RETURN_OBJ.
However, RETURN_OBJ in itself contains several complex objects like list of objects from other class, maps, etc.
In such a case, will annotating the participating classes with @XmlRootElement and annotating web service with @Produces("application/json") enough?
Because just doing it is not working and I am getting no message body writer found for class error.
What is the reason, cause and solution for this error?