Friday, April 16, 2010

Restlet 2.0 for GAE error: Couldn't write the XML representation

I spent a good day of troubleshooting trying to figure out why my web services on GAE were returning this error when i try to serialize an object into xml using   org.restlet.representation.Representation;

org.restlet.engine.http.adapter.ServerAdapter "Couldn't write the XML representation"

I first made sure i read the manual:

but the manual here only give a GAE sample for returning a string, not a Representation.

The solution for me was to download

and add xalan.jar to my lib and classpath..


1 comment:

  1. Latest reviews and news about android phones, free droid app and android mobile

    android mobile