I have a JAX-RS service with create and update methods that return data
objects rather than a JAX-RS Response object.

I am using the 2.2-SNAPSHOT and as of recently I get an error from my POST
and PUT methods

@Path("my-service")
public class MyService {

@WebMethod
@POST
@Path("/detail/")
@Consumes("application/json")
public Detail createDetail(Detail object) {
   //create detail
   return newDetail;
}

@WebMethod
@GET
@Path("/detail/{id}")
public Detail getDetail(@WebParam(name = "id") @PathParam("id") Long id) {
  //find detail
  return someDetail;
}

}

The getDetail() method returns the object formatted in json or xml with no
problem

The createDetail() method returns the following error:
.No message body writer found for response class : Detail.

Is it likely that something in the SNAPSHOT was recently broken?
-- 
View this message in context: 
http://www.nabble.com/JAX-RS-response-for-POST-and-PUT-no-longer-working-tp22188279p22188279.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to