users@jersey.java.net

Re: [Jersey] A message body writer for Java type [...] and MIME media type [...] was not found

From: Moises Lejter <moilejter_at_gmail.com>
Date: Wed, 12 May 2010 01:34:39 -0500

Maybe you should designate your class as @XmlRootElement, too ?
I would have expected that the default XML encoding would be acceptable, even though you say "application/cvd+xml", and not just "application/xml" ...

Moises

On May 12, 2010, at 1:27 AM, Javier Alvarez wrote:

> I am developing a RESTful Web Service using Jersey and I encountered a problem. The error is the following:
>
> A message body writer for Java type, class VDCType, and MIME media type, application/vdc+xml, was not found.