tag:blogger.com,1999:blog-6224595597588014495.post5900475581061811911..comments2022-04-01T01:19:09.844+01:00Comments on Paddy's Weblog: RESTful client in Java with JAX-RS 2.0 Client APIPatrick Championhttp://www.blogger.com/profile/17766599320454819753noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6224595597588014495.post-40027131290376629902012-05-11T20:47:15.678+01:002012-05-11T20:47:15.678+01:00Thank you Martin for the solution!
it works when I...<b>Thank you Martin for the solution!</b><br />it works when I add the jars :<i><br />- jersey-media-json-2.0<br />- jackson-jaxrs<br />- jackson-core-asl <br />- jackson-mapper-asl<br />- jackson-xc </i><br />and the line <i><br />client.configuration().enable(new JsonFeature());</i><br /><br />I had to add and use a class which wraps the list too.<br />I will write about that later.<br /><br />And, it will be great if json was supported natively (without the line <i>client.configuration().enable(new JsonFeature());</i> )Patrick Championhttps://www.blogger.com/profile/17766599320454819753noreply@blogger.comtag:blogger.com,1999:blog-6224595597588014495.post-23466785660774679892012-05-11T14:30:04.479+01:002012-05-11T14:30:04.479+01:00JSON de-/serialization works (http://java.net/jira...JSON de-/serialization works (http://java.net/jira/browse/JERSEY-1142), you just have to make sure jersey-media-json-*.jar and jackson-*.jars are on the classpath and you have to enable the feature on the client by calling client.configuration().enable(new JsonFeature())Martin Matulahttps://www.blogger.com/profile/05408887423428127670noreply@blogger.comtag:blogger.com,1999:blog-6224595597588014495.post-86521388064142319472012-05-11T10:38:07.817+01:002012-05-11T10:38:07.817+01:00Thanks for trying Jersey 2.0-m03 out and posting t...Thanks for trying Jersey 2.0-m03 out and posting this blog. Since you mentioned some things did not work for you in m03, I filled the following two issues - hopefully we can fix them soon:<br /><br />http://java.net/jira/browse/JERSEY-1142<br />http://java.net/jira/browse/JERSEY-1143Martin Matulahttps://www.blogger.com/profile/05408887423428127670noreply@blogger.com