RE: Resource API refactoring (Was: media type adaptor)

2009-02-02 Thread Jerome Louvel
Hi Stephan, If you mean that because we use 4 annotations (note that JAX-RS has 19) it is a copy, then you are right ;-) Seriously, we are trying to solve a specific set of RFEs in the Restlet API. See details here: http://wiki.restlet.org/developers/172-restlet/226-restlet.html We are just

RE: from the org.restlet.data.Request, get the HttpServletRequest

2009-02-02 Thread blackhole
Thanks Jerome for coming back so quickly. The full name of the "request" variable that I pass to the getRequest() static method is com.noelios.restlet.http.HttpRequest. I've also attached the stack trace below for the NPE. Christy. java.lang.NullPointerException at com.vennetics.jbox.

Re: Overriding HTTP headers

2009-02-02 Thread Jean-Philippe Steinmetz
So I removed the code that initialized a new instance of the TunnelService as apparently it was enabled by default already. I have successfully tested the request POST http://host/app/resource/15?method=UPDATE. However performing a DELETE operation the same way results in a GET. The tomcat logs do

Re: Connector question

2009-02-02 Thread Thierry Boileau
Hi, you can check this page of the wiki [1] regarding how to use a specific connector. Then, you can have a look at the logs, it should mention something avout the Jetty connector (see this page for more details about logging [2]). Best regards, Thierry Boileau [1] http://wiki.restlet.org/doc

RE: Re: Connector question

2009-02-02 Thread blackhole
Thanks, the logging helped me figure out which connector is being used. The problem I now have is that I see: [SEVERE][org.restlet.Context] Unable to register the helper com.noelios.restlet.ext.jetty.AjpServerHelper [SEVERE][org.restlet.Context] Unable to register the helper com.noelios.restle

RE: Re: Connector question

2009-02-02 Thread Jerome Louvel
Hi Luke, Check the readme.txt file in the 'libraries' directory for details, but you seem to miss some dependencies, at least the javax.servlet.jar which Jetty depends on, even if we run Jetty as a standalone connector. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http: