>I tried that from scratch, but it just returns a java object.
This could come from the classpath of the server application.
The ability to convert an Object to a perticular type of representation is
given via Restlet extensions (see this page for more details about the
Converter [1]) simply put in the classpath of the application (with their
dependencies).For example the "org.restlet.ext.json" extension allows to
generate on-the-fly json representation of Java bean.
So, I wonder what kind of extensions are you using for your application?

Hmm, I see. I have "org.restlet.ext.json" installed but it did not work. 
Googling suggested I install Jackson. After I got some runtime exceptions, 
installed the org.codehaus jars and now json works.

As for xml, I downloaded xstream separately. Even once I installed that, the 
conversion failed without error or warning and returned no entity. I tried 
adding all the jar files included in the xstream download to my project, but no 
love. Absolutely no hint as to what was wrong here.

Much googling later, I stumbled upon this

http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/313-restlet.html

Oh, so there's supposed to be a "org.restlet.ext.xstream" but it's not 
supported in the GAE version of restlet (?!). So I downloaded the standard 
edition version of restlet, found that jar, added it, and now it seems to work 
-- still need to see if it does what I want.

All that said, shouldn't I have gotten some sort of.... error messages along 
the way to tell me what was wrong?!? As it is, the only errors I got were when 
I installed Jackson but not the codehaus jars. Honestly, this seems like a very 
confusing process. Just getting an empty entity is not a useful indication of 
where something is missing. Appologies for my frustration, but I think this 
could all be clearer in the docs if there isn't going to be an error.

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

Reply via email to