Hi All,
I have very puzzling situation.
My application can be deployed in two modes
1. Runs as embedded Jetty
2. Runs as war under standalone Jetty
There is a very simple code:
public void handleGet()
{
FileRepresentation fr = new FileRepresentation( new File(
this.getClass().getResource( path ).getFile() ),
MediaType.TEXT_XML,
1000 );
getResponse().setEntity( fr );
getResponse().setStatus( Status.SUCCESS_OK );
}
That executes just fine under #1 scenario but returns nothing but the following
working under #2
[WARNING][org.restlet.Component.Server] A response with an unavailable entity
was returned. Ignoring the entity for resource
I'm using Restlet 1.1.3.
Any suggestions much appreciated.
Thanks
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1304933