I am new to GWT, and I am trying to string up a simple app. I have a
small Jersey client to consume a rest interface [1]. In order to avoid
the cross scripting issue, I planned to put this client into the GWT
server, and expose the functionality to GWT over GWT-RPC. If I run
this client stand alone, it works. If I run this in the GWT app via
eclipse (which also uses Jersey I think) I get the error

Caused by: com.sun.jersey.api.client.ClientHandlerException: A message
body reader for Java type, interface java.util.List, and MIME media
type, application/json, was not found
        at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
526)
        at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
508)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:572)
        at com.sun.jersey.api.client.WebResource.get(WebResource.java:183)
        at
org.candlepin.client.CandlepinClient.getProducts(CandlepinClient.java:
30)
        at
org.candlepin.pinsetter.server.CandlepinServiceImpl.getProducts(CandlepinServiceImpl.java:
16)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)

Which leads me to believe the ContextResolver is getting overwritten.
Has anyone gotten a jersey client to work in the server sdie of GWT?

-- bk
[1] http://www.pastie.org/832659

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to