Paul,
I am using Jersey 1.1.5 whereas the document refers to 1.2. so i cannot
find JSONJAXBContext class in my version. Also as per the documents 1.1.5 is
supported on GAE/J
Any clues or help is highly appreciated.
Thanks,
Rahul
----------------------------------------------------------
Rahul Juneja
http://techlabs.thoughtclicks.com
On Wed, May 19, 2010 at 11:39 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
> Hi,
>
> Have you included the JSON dependencies:
>
> https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html
> #d4e1606
>
> ?
>
> Paul.
>
> On May 19, 2010, at 5:30 PM, Rahul Juneja wrote:
>
> I was trying to return json in google app engine and is says Mime type not
> supported. What can be the possible reason.
>
> My exception & code i am using is as follows.
>
>
> ****************************************************************************
> *Exception*
> SEVERE: A message body writer for Java type, class
> com.thoughtclicks.vo.ApplicationResponse, and MIME media type,
> application/json, was not found
>
> *My Code: is as follows.*
>
> @GET
> @Produces("application/json")
> public ApplicationResponse translate(@QueryParam("msisdn") String url) {
> ApplicationResponse appResponse = new ApplicationResponse();
> appResponse.setResponse("Some String");
> return appResponse;
>
> }
>
>
> Also, when i return xml it just works fine.
>
> Any help on this is appreciated.
>
> Thanks,
> Rahul
> ----------------------------------------------------------
> Rahul Juneja
> http://techlabs.thoughtclicks.com
>
>
>