What version of Jackson are you using. TokenBuffer was introduced in 1.5.

--tim

On Wed, Jan 25, 2012 at 9:04 AM, Domnic <saviodom...@yahoo.com> wrote:

> Hi there,
> I am having an AlertServerResource.java which extends a ServerResource.
>
> I am trying to process a PUT request like,
> @Put
> public Representation storeContact(
>                        Representation representation, Variant variant) {
>
> Alert miAlert = (new JacksonRepresentation<Alert>(
>                                representation, Alert.class)).getObject();
>
>
> I am getting an error..
>
> WARNING: Exception or error caught in resource
> java.lang.NoClassDefFoundError: org/codehaus/jackson/util/TokenBuffer
>        at
> org.restlet.ext.jackson.JacksonRepresentation.createObjectMapper(JacksonRepresentation.java:120)
>        at
> org.restlet.ext.jackson.JacksonRepresentation.getObjectMapper(JacksonRepresentation.java:164)
>        at
> org.restlet.ext.jackson.JacksonRepresentation.getObject(JacksonRepresentation.java:136)
>
>
> although
> org.codehaus.jackson.code.jar,
> org.codehaus.jackson.mapper.jar and the
> org.restlet.ext.jackson.jar
>
> are in the classpath and in the lib folder of the WEB-INF
>
> is there any workarounds or something I miss for this issue !?!
>
> http://jira.codehaus.org/browse/JACKSON-568
>
> thanks
> Domnic
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2911031
>

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

Reply via email to