Okay it is fixed. I did not have the @XmlRootElement on my POJO on my client side but did on my server side.
Thanks, -Tony ----- Original Message ---- From: Konstantin Kolinko <knst.koli...@gmail.com> To: Tomcat Users List <users@tomcat.apache.org> Sent: Sun, January 16, 2011 3:30:37 AM Subject: Re: Jersey & Tomcat... 2011/1/16 Tony Anecito <adanec...@yahoo.com>: > 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. "this error" = what error? Please provide details, what you are doing, step-by-step, and what the error is. http://www.catb.org/~esr/faqs/smart-questions.html BTW, the latest version of Tomcat 6 is 6.0.30. It would be nice if you can try with it. > 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. It is just a generic "malformed request" error. (Usually when the request is rejected on early stages of processing). Do you have the ROOT webapp deployed in your configuration? You should have one. > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org