I have recently switched over a restlet resource to use JAXRS.  Everything
seems to be going as planned but I came upon an issue that I can't seem to
resolve.  I have a method annotated with @POST that accepts
"application/json".  application/json requests seem to resolve to the
correct method, however the json that I am posting does not seem to be
formatted correctly, or I might have something set up incorrectly with
Jackson.  I have the jackson ext jar in my classpath (version 2.1-M3) but
when I post to the URI in question I just get back,
[org.xml.sax.SAXParseException: Content is not allowed in prolog.].

Could someone provide me an example of how to get Jackson set up correctly
with JAXRS.  Incidentally, I am using Spring as well if that factors in at
all.

Your help is appreciated.

-j 

--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Jackson-Integration-with-JAXRS-tp6285941p6285941.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2721229

Reply via email to