Re: problem returning a response status

2009-10-28 Thread Patrizio Munzi
Jerome, never experienced this problem...?? Thanks Patrizio Munzi wrote: Hi everybody, I think there's a bug or at least something strange in ResourceException management. The getDescription method works only if I run my application in a stand-alone server. It instead doesn't work if

RE: Restlet 2.0 Security

2009-10-28 Thread Jerome Louvel
Hi all, In addition, if you are looking for authentication and authorization, you should look at the new security API in Restlet 2.0. See the org.restlet.security package and this wiki page for more details: http://wiki.restlet.org/developers/172-restlet/212-restlet.html Best regards,

RE: Client Timeout on ClientResource post method

2009-10-28 Thread Jerome Louvel
Hi Troy, Here is an example: Client client = new Client(Protocol.HTTP); client.setConnectTimeout(5000); client.get(...); After checking the code again, I realized that the internal HTTP client was not taking properly into account this property. This is fixed in Restlet

RE: UrlConneciton based HTTP client tiimeouts

2009-10-28 Thread Jerome Louvel
Hi Evgeny, I've just fixed the bug causing getHelper().getConnectTimeout() to always return 0, in SVN trunk and 1.1 branch. Thanks for pointing to this bug! Otherwise, in SVN trunk, the configuration parameters for the taken into account when the request is actually handled, or at the earliest

RE: UrlConneciton based HTTP client tiimeouts

2009-10-28 Thread Jerome Louvel
Hi Jim, I have just fixed this issue in SVN 1.1 branch as well. Please try again when 1.1.7 is released or try to build locally meanwhile. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com

RE: Restlet OAuth extension

2009-10-28 Thread Jerome Louvel
Hi there, We are definitely planning to upgrade this extension for 2.0 as indicated by this issue: Improve OAuth extension http://restlet.tigris.org/issues/show_bug.cgi?id=606 We are welcoming contributions to help us with this extension, for migration to ServerResource, update to the latest

RE: Condition handling

2009-10-28 Thread Jerome Louvel
Hi Hannes, In Restlet 1.1, the conditions are checked *after* the representation is retrieved, because it needs the representations metadata in order to check those conditions. In Restlet 2.0, it is possible to just provide the metadata (RepresentationInfo) so the conditions are checked before

Re: XML dom nodes

2009-10-28 Thread gonzajg
Thanks for your idea John! I finally used this code and navigate through the document but don't know if it's the most efficient way: ByteArrayOutputStream buff = new ByteArrayOutputStream(); response.getEntity().write(buff); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

RE: Re: Re: Problems when registering a simple Restlet resource under OSGi

2009-10-28 Thread Jerome Louvel
Hi Vlatko, Regarding the Maven repository, the artifacts for 2.0 M4 and 2.0 M5 are available but under a different groupID as we added support for several editions. For example: http://maven.restlet.org/org/restlet/jee/org.restlet/ Best regards, Jerome Louvel -- Restlet ~ Founder and Lead

RE: Re: Re: Re: Problems when registering a simple Restlet resource under OSGi

2009-10-28 Thread Jerome Louvel
Vlatko, That would be great to compare the manifests generated by pax-wrap with the one we have already (which are edited with the help of Eclipse IDE). Could you share them with us? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies

RE: Restlet + Jetty + Cometd in OSGi

2009-10-28 Thread Jerome Louvel
Vlatko, Integration between Restlet and OSGi HTTPService isn't available by default. I think it should work if you use the ServerServlet from org.restlet.ext.servlet. If it does work, it would be nice to document it properly (contribution opportunity!). For more details on our plans for OSGi,

RE: Trouble with ServerServlet

2009-10-28 Thread Jerome Louvel
Hi Rickard, Very good points, the life cycle of Servlet wasn't correctly propagated. In addition, we had a pending issue to propagate these events inside the Restlet routing system (from a component to the contained applications for example). Make start/stop usage consistent

RE: Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-28 Thread Jerome Louvel
Hi all, I've just updated the wiki page to add this configuration hint: http://wiki.restlet.org/docs_2.0/13-restlet/48-restlet/101-restlet.html Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com

RE: Problem with Reloading

2009-10-28 Thread Jerome Louvel
Kalimera Sopasakis, This is due to a bug in ServerResource in the conditional processing. Good news: it was fixed in recent snapshots: http://www.restlet.org/downloads/unstable Could you try again and let us know? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~

NullPointerException in ChallengeCallbackHandler

2009-10-28 Thread legege
Hi, If the initial request doesn't contain the Authentification header, a NullPointerException is raised. java.lang.NullPointerException at org.restlet.ext.jaas.ChallengeCallbackHandler.handle(ChallengeCallbackHandler.java:101) at

RE: Re: Retrieving Login in a resource

2009-10-28 Thread Laurent Garrigues
Ok, thanks for the advice ! I should have thought about it ! Regards Laurent Garrigues -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412159

Query Parameters for Directory Restlets and static files (405 error)

2009-10-28 Thread Andrew Moore
Hi, I'm still learning REST, HTTP, and Restlets... so this may be a basic question, but here goes... My situation/problem space: We have a javascript heavy client and I am trying to set up a way of testing individual UI components, while reusing the same javascript includes (so everyone knows

RE: Re: Handling 100 - Continue response

2009-10-28 Thread webpost
Hi Jerome, I was able to get it working using the HttpURLConnection extensions. Thanks for the suggestion. Mike P. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412186

RestletFrameworkServlet missing from M5 and snapshot builds

2009-10-28 Thread Cedric Hurst
Hi. I'm attempting to set up a Spring-backed Restlet web application hosted in the GAE. I'd like to make use of the RestletFrameworkServlet, which is currently in the trunk of the svn:

Re: Query Parameters for Directory Restlets and static files (405 error)

2009-10-28 Thread Andrew Moore
I should add that we are using 2.0 M3 and serving it up with JBOSS. ~ Andrew -- View this message in context: http://n2.nabble.com/Query-Parameters-for-Directory-Restlets-and-static-files-405-error-tp3906669p3907399.html Sent from the Restlet Discuss mailing list archive at Nabble.com.

Re: can't access jax-rs resource in gae

2009-10-28 Thread Stephan Koops
what URI do you called? best regards Stephan Michael Mogley schrieb: I've followed the example in First Steps for GAE and can't seem to access the resource from the browser. I'm running: - latest snapshot build for gae (as of 10/25/09) - AppEngine 1.2.6 - Eclipse 3.5 I've attached

Re: can't access jax-rs resource in gae

2009-10-28 Thread Michael Mogley
I'm just testing locally for now (using the Google Eclipse plugin's Web-App. My URI is http://localhost:8080/rest/test/hello. In the console, I get back: Oct 28, 2009 7:01:32 PM org.restlet.engine.http.HttpServerAdapter commit WARNING: A response with an unavailable entity was returned.

Re: RestletFrameworkServlet missing from M5 and snapshot builds

2009-10-28 Thread Ben R Vesco
Related to this issue? http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2411788 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412204

RE: Re: RestletFrameworkServlet missing from M5 and snapshot builds

2009-10-28 Thread Cedric Hurst
Ah, yes. Thanks for pointing me to that post, Ben. I've swapped my ext.spring jar from the GAE with the one provided in the JEE version. I'll test it out tonight to see if the Servlet class works inside GAE. If it does, perhaps we should consider including it in the GAE distribution of

Re: can't access jax-rs resource in gae

2009-10-28 Thread Stephan Koops
Hi Michael, ok, than you accessed the resource, but no entity is available in the Response. Now I've seen that you mixed the API of JAX-RS and annotation based Restlet. For JAX-RS you shouldn't inherit from class ServerResource. And you must use the @GET from JAX-RS, not the @Get from Restlet.

Re: http connection timeout and version 1.1.6

2009-10-28 Thread Jim Alateras
Thanks Jerome for getting back to me. I ended doing something like this and it seems to work for me Client client = useHttps ? new Client(new Context(), Protocol.HTTPS) : new Client(new Context(), Protocol.HTTP); HttpClientHelper helper = new

Persistent connections

2009-10-28 Thread Rickard Öberg
Hi, How do I enable persistent connections using Restlet? I've checked the code, and I can't seem to find how to do it. /Rickard -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412383

Re: UrlConneciton based HTTP client tiimeouts

2009-10-28 Thread Jim Alateras
I have just fixed this issue in SVN 1.1 branch as well. Please try again when 1.1.7 is released or try to build locally meanwhile. that's great Jerome. Will check out and build locally Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios