users@jersey.java.net

Using MessageBodyReader

From: Kem Elbrader <kem.elbrader_at_elementline.com>
Date: Thu, 21 Aug 2008 14:50:52 -0600

I'm getting the following exception when I attempt to deploy my jersey
app to glassfish v2.

com.sun.jersey.api.container.ContainerException: Method, public
java.awt.image.BufferedImage
com.el.ui.graphicserver.Renderer.draw(java.awt.Shape), annotated with
GET of resource, class com.el.ui.graphicserver.Renderer, is not
recognized as valid Java method annotated with @HttpMethod.

I'm attempting to use the a MessageBodyReader named ShapeProvider to
allow java.awt.Shape to be used as a parameter in my @GET method. I'm
not sure if I'm using this correctly.

I've attached my project.

Thanks for any help.
Kem Elbrader