All URLs 404 with JAX-RS on GAE

2011-03-31 Thread Ellen Spertus
I'm using JAX-RS in Restlet 2.0.5 on GAE 1.4.2 in Eclipse 3.6.1, and none of my paths are recognized. Specifically, the only requests that are successful are to http://localhost:8080;. I modeled my code after the tutorial at

RE: HTML decoration for Directory

2011-03-31 Thread Jerome Louvel
Hi Meb, If you are referring to index HTML pages, you can override the following methods: http://www.restlet.org/documentation/snapshot/jee/api/org/restlet/resource/Directory.html#getIndexRepresentation%28org.restlet.representation.Variant,%20org.restlet.data.ReferenceList%29

RE: First character of XML document gets eaten on POST

2011-03-31 Thread Jerome Louvel
Hi Bryan, That's strange as a similar bug was fixed in 2.0.5. From changes log: - Fixed bug causing first entity byte to be eaten if the connection wasn't persisting. Reported by Sebastien Gaide and Olivier Miel. Would you mind providing a small test case to

Re: Different @Post: xml, json and java String

2011-03-31 Thread Daniele Dellafiore
I've tried with the @Get @Get(json) public JsonRepresentation represent() { return new JsonRepresentation(new JSONArray(find())); } public List find() { return getApplication().getSubscriptionService().findTenants(); } without the @Get on the second method, works:

Re: Different @Post: xml, json and java String

2011-03-31 Thread Tim Peierls
Thank you, Fabian! This is the kind of thing that should go into the wiki (and the book!). It seems like dozens of people have run into the same situation, and it could all be avoided by saying this clearly up front. --tim On Thu, Mar 31, 2011 at 12:17 PM, Fabian Mandelbaum

Re: Setting the keystore password for SSL

2011-03-31 Thread Tal Liron
I can confirm that this is also true for Restlet 2.0.6. The blog announcement indicated that Jetty was upgraded, but I guess this happened only in the 2.1 branch. Jetty 7.3 does not work in Restlet 2.0. -Tal On 03/18/2011 03:09 PM, John Karp wrote: I found the problem. Apparently

Examples of Tanuki wrapper usage with a Restlet application

2011-03-31 Thread Fabian Mandelbaum
Hello, I'd like to know if there's some examples (and where are them, of course) on using Tanuki's wrapper to 'control' (startup, shutdown) a Restlet application. I'm currently using a 'main' class which sets my Application instance, starts needed services, and starts the Application, together

Re: Examples of Tanuki wrapper usage with a Restlet application

2011-03-31 Thread Tal Liron
You can check out the daemon support page for Prudence (which is based on Restlet): http://threecrickets.com/prudence/manual/daemon/ Prudence comes with working configuration files for Tanuki's Wrapper and for YAJSW. It comes with Apache Commons Daemon ready to run, with a rather