Hello Gabriel,
that's really weird, I've tried your sample code, and it simply works for
me. I've just created an Eclipse project with your source code and added
the org.restlet.jar taken from 2.0.11 version.
I will try in a servlet container, then in Netbeans.
Once added the jackson extension,
Hi Gabriel,
I've found a problem with the default converter. If you add the jackson
extension, you will notice that this client code works:
ContactResource resource = cr.wrap(ContactResource.class);
Contact contact = resource.retrieve();
In this case, the client and the server exchange a json
Hello Gabriel,
I think that this error is due to the internal HTTP server connector. This
connector is not completly stabilized, and I suggest you to add a proofed
one such as jetty or simple.
Just complete the classpath with the extension jar
(org.restlet.ext.jetty.jar or
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
Hello Thierry,
I've just test with the 2.1RC2 and the simple server and it works!! Thank you!!
I was becoming mad searching for the problem :(
About the json, Do I have to add another library with the jacksonextension? I
have also added the org.json.jar but it still fails.
Thank you again
Best
If you use the Jackson extension, you need org.restlet.ext.jackson.jar and
the Jackson jars. You need both the Jackson core and mapper jars. They are
available under multiple licenses, and the packaging is different for
different licenses. I use ASL, so the jars I include are
Hello Thierry,
Forget my last messages about Jackson, I forget to add the
org.codehaus.jackson.core.jar and the org.codehaus.jackson.mapper.jar to the
project.
Once added the json representation is available
Again, thank you.
Best regards
Gabriel
Hi Tim,
Thought for Restlet team: It shouldn't be hard to include Jackson
Smile-based binary object serialization in the Jackson extension. That
could be a more full-featured serialization mechanism that the built-in
Java object serialization (which just uses Java Serializable machinery,
8 matches
Mail list logo