Hello Thierry,
First of all, thank you for the support.

After your first answer I've removed all restlet jars from my system, and 
downloaded a fresh 2.0.11 jse version. I remove the reference library from the 
project and add it again, clean, build an run.
I haven't added the JacksonRepresentation, and then the code worked.
However I've try to do the same using the restlet 2.1RC2 and it retrieves a 
null value as before.

If I add the JacksonRepresentation to the project, when I run the client I 
receive the following error:
Exception in thread "Restlet-PipeWriter" java.lang.NoClassDefFoundError: 
org/codehaus/jackson/JsonFactory
        at 
org.restlet.ext.jackson.JacksonRepresentation.createObjectMapper(JacksonRepresentation.java:118)
        at 
org.restlet.ext.jackson.JacksonRepresentation.getObjectMapper(JacksonRepresentation.java:164)
        at 
org.restlet.ext.jackson.JacksonRepresentation.write(JacksonRepresentation.java:205)
        at org.restlet.engine.io.BioUtils$2.run(BioUtils.java:412)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.JsonFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 5 more

In the 2.1, the use of the Object wrap will work?
Thank you again
Gabriel

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

Reply via email to