users@jersey.java.net

[Jersey] Jersey & Tomcat...

From: Tony Anecito <adanecito_at_yahoo.com>
Date: Sun, 16 Jan 2011 01:16:37 -0800 (PST)

Hi All,

I am a newby to Jersey (1.5) but not Tomcat (6.0.20). I am at a point where when
I send a complex object from my client program to Tomcat I get this error about
when reading the Message body a reader is not found. The odd thing is I can get
the same complex object just fine back from the web service. I am using
APPLICATION_JSON for both the Produces and Consumes annotation in the web
service. I read somewhere after googling that Tomcat may not be loading up the
Message body readers/writers classes for some reason.

Also, another really odd thing when defining the type (APPLICATION_JSON) for the
webresource object put or post (I tried both) call I get a http status returned
of 400. I was trying to use type to explicitly define the outgoing object to
match the Consumes type on the server side web service.

Sorry for the cross posting but I am not sure what to do next. Any ideas
welcome.

Thanks,
-Tony