users@jersey.java.net

Re: [Jersey] MessageBodyWriter

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 17 Feb 2010 10:55:52 +0100

Hi Jesus,

Is it possible to send me the complete BooleanWriter implementation
and the resource class with the resource method that returns the type
supported by BooleanWriter?

Even better would be if you could send me a simple maven-based
project :-)

Paul.

On Feb 17, 2010, at 12:12 AM, Jesus M. Rodriguez wrote:

> So I've spent about half a day trying to figure out how to get my
> MessageBodyWriter to be found by jersey so it can serialize my object.
>
> I added the package to the web.xml
>
> <param-name>com.sun.jersey.config.property.packages</param-name>
> <param-
> value
> >
> org
> .fedoraproject.candlepin.resource;org.fedoraproject.candlepin.model</
> param-value>
>
> I added the following annotations to the file.
> @Produces({"application/json", "application/xml"})
> @Provider
>
> The log shows that if found the Provider
>
> INFO: Provider classes found:
> class org.fedoraproject.candlepin.model.BooleanWriter
>
> but in the debugger when it looks for the Writers, it is not in the
> list.
>
> Is there something I'm missing?
>
> Sincerely,
> jesus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>