If you are using query params in GET, then I would think that you need
to provide a String type instead of a complex type. Change it to String
s, it should work and you can invoke using GET
http://localhost:8080/?s=shape .
Not sure if this is what you intended.
-Arul
Kem Elbrader wrote:
> 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
>
>
> ________________________________
> Scanned by MessageLabs for Flux
> ________________________________
> ------------------------------------------------------------------------
>
> This body part will be downloaded on demand.