RE: Trouble Setting Jetty Parameters with Restlet 1.0

2009-06-16 Thread Jerome Louvel
Hi Avi, Sorry, but we don't maintain Restlet 1.0 anymore except within our professional support plans... Is it possible for you to upgrade to Restlet 1.1? Maybe you should try updating the Jetty JARs as well. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restl

Trouble Setting Jetty Parameters with Restlet 1.0

2009-06-16 Thread Avi Flax
Hi, I'm using Restlet 1.0.10, and I'm having trouble setting the Jetty parameters — specifically, "maxThreads", to limit the number of threads that Jetty uses. Here's what I'm doing: - Server server = comp.getServers().add(Protocol.HTTP, 3000); // The Restlet docs say the param is

Lift framework in Scala

2009-06-16 Thread Rob Heittman
Hi all, The long term residents here know I'm kinda partial to Scala. I've seen a couple of tweets and blogs lately favorably comparing Lift (http://liftweb.net/) to Restlet and thought it might be appropriate to begin a little bit of a comparative exercise. I haven't tried to do anything real w

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread mstricker
Hi Rob, yes exactly this is the problem at the moment. I think I didn't explain myself very well because of the language barrier. Any help is appreciated. Max Am 17.06.2009 um 00:18 schrieb Rob Heittman (via Nabble): > Hi Max, > > I'm having some trouble understanding your use case too. So

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread Rob Heittman
Hi Max, I'm having some trouble understanding your use case too. Sorry if maybe it is just a language problem. Let me try to repeat this to see if I understand. - You have already created a Restlet service which is out on the web somewhere, say http://publicserver/restlet/service. - You need to

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread mstricker
Hi, I upgraded both my server & GWT libs to 1.1.5 as you suggested. I use Firefox 3 as browser under Windows XP and Mac OS X Leopard. The updated not fix my issue but I think I know the cause, I think it is because of the security restrictions ( RPC calls can be made only to the same host). I h

Re: Restlet 2.0 M3 released

2009-06-16 Thread Tal Liron
Oops! That's what I meant! (not VariantInfo) Rob Heittman wrote: > And 4. that new RepresentationInfo thing is pure nitroglycerine. > > Thanks for validating trunk, Tal, I had to hold off on some port > attempts on my end due to the 406 problem ... I'll give it another whirl. > > On Tue, Jun 16,

RE: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread Jerome Louvel
Max, I suggest that you upgrade to Restlet 1.1.5. This might fix your issue. Otherwise, which browser and OS are you using on the client side? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~

RE: Stopping the Simple server

2009-06-16 Thread Jerome Louvel
Hi Arjohn, I'm happy to report that the Simple connector can now be stopped cleanly by incoming requests! Niall and I have worked over the past few weeks to support this. Simple 4.1.13 is now available in Restlet's SVN trunk. Thanks for reporting this issue. I'm closing #823. Best regards, J

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread mstricker
Hi, thanks for your reply. I waited the whole day. Here my configuration: Apache Tomcat/6.0.18 JVM Version 1.6.0_07-b06 restlet 1.1.1 I followed the instructions from the wiki, and my test code is realy simple at the moment: on server side i simply log getRequest().getChallengeResponse() whic

RE: Restlet 2.0 M3 released

2009-06-16 Thread Jerome Louvel
Thanks Tal and Rob for your positive feed-back. The latest round of enhancements has allowed great internal refactorings as well (see Metadata#getParent(), includes(), isCompatible(), Variant, Directory, etc.). Directory has been optimized as well for some specific case, when a file can directly be

RE: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread Jerome Louvel
Hi Max, No specific idea, this should work. Could you share your configuration details? (Restlet version, JVM, browser, etc.) Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'o

RE: Re: How goes content negotiation work?

2009-06-16 Thread Jerome Louvel
Hi Mark, If you want to prevent the matching of subpath by your resource, you need to change the matching mode of your router or for the specific route. See: - Router#setDefaultMatchingMode() - Route/TemplateRoute#setMatchingMode() - Template#MODE_EQUALS Regarding the failing content negotiati

RE: ERROR messages in log file

2009-06-16 Thread Jerome Louvel
Denys, Could you give us more details about your Restlet configuration? For example, do you deploy in a Servlet container? Do you use ServerServlet or ServletAdapter (ex-ServletConverter)? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Techn

RE: Trouble Getting Query Parameters

2009-06-16 Thread Jerome Louvel
Hi Andrew, Thanks for reporting this issue. I've just updated our FormReader logic to be more flexible. I've also added a regression test case. Checked in SVN trunk. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ h

RE: PROBLEM WITH org.restlet.representation.InputRepresentation IN 1.2-M2

2009-06-16 Thread Jerome Louvel
Hi Denys, I've had a quick look at the Javadocs of Servlet API and Tomcat: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getI nputStream() http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/Co yoteInputStream.html#close() Nothing seems to forbid t

Re: Restlet 2.0 M3 released

2009-06-16 Thread Rob Heittman
And 4. that new RepresentationInfo thing is pure nitroglycerine. Thanks for validating trunk, Tal, I had to hold off on some port attempts on my end due to the 406 problem ... I'll give it another whirl. On Tue, Jun 16, 2009 at 2:30 PM, Tal Liron wrote: > 1. Routing: Routing seems to be being rew

RE: Dynamic restlet/routing discovery

2009-06-16 Thread Jerome Louvel
Hi Jools, Thanks for sharing your experience. I also remember about a presentation from Overstock at JavaOne regarding dynamic routing, others have been experimenting with OSGi as well. Looking forward to your Restlet based project! Best regards, Jerome Louvel -- Restlet ~ Founder and

RE: 2.0m3 and content negotiation

2009-06-16 Thread Jerome Louvel
Hi Bruno, Thanks for looking into this part of the code base. As said in other emails, many enhancements and refactorings were done recently on ServerResource, ConverterService and content negotiation. Previously, annotation values weren't taken into account, leading to strange results as you

Re: Restlet 2.0 M3 released

2009-06-16 Thread Tal Liron
Works *perfectly*! In fact, a bug I previously had with conditional mode (I didn't tell you, because it seemed related to the negotiation bugs) has also been fixed. I'll echo what Rob said before: all this high-level HTTP stuff is a big pain to do right, and I'm very grateful that you are doing

RE: Setting Status from the write method of a Representation

2009-06-16 Thread Jerome Louvel
Hi Matt, This is not currently possible. Also, the interest would be minimal: as soon as the representation is written, it is not possible to change the status anyway. I would suggest an alternate design where you would leverage the new RepresentationInfo class added to Restlet 2.0 by overriding

RE: Restlet+JAX-RS von GAE?

2009-06-16 Thread Jerome Louvel
Hi guys, Our current focus is to fully automate the port of Restlet to each platform that we know support (GWT, GAE, Android, JSE/JEE). Thierry has been working hard on this and is getting close. Once this is working, each Restlet edition will have its own distribution and we will be able to focu

RE: Restlet 2.0 M3 released

2009-06-16 Thread Jerome Louvel
Hi Tal, Could you check again with the latest from SVN trunk? Many changes have been made recently. Current code should be more stable. If you still encounter the issue, could you send more details or a reproducible snippet of code? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead dev

RE: Restlet 2.0 M3 released

2009-06-16 Thread Jerome Louvel
Hi Fabian and all, A lot of changes have been made to SVN trunk in the past few days. We were able to fix several issues and add code to take into account annotation return values. For now we don't plan to support full MIME types as annotation value as we want to support a more complex syntax.

RE: Designing restlet applications

2009-06-16 Thread Tal Friedman
Hi Matt, I am not familiar with FreeMarker (although I am looking into it), but I will hazard to guess that it's not relevant to your question. I think there is a simple way to design your application and minimize the number of routes. Basically, you only need the first 2 routes you mentioned:

Re: Designing restlet applications

2009-06-16 Thread Rob Heittman
I was starting to answer this and realized I was making an assumption. WHY don't you want to do this? (Too many routes? Don't like the URI hierarchy that's emerging?) I find that I've had a hard time implementing complete template-based, page-based UIs entirely on the server without making a me

Re: Restlet+JAX-RS von GAE?

2009-06-16 Thread Stephan Koops
Hi Henrik, there is an open issue for this, but now I have not the time to do anything for it. I don't know, what the problem is. Jerome, do you analyzed it? If you want to help, than you're help is very welcome. best regards Stephan Henrik Steer schrieb: > I want to use JAX-RS von GAE, but

Restlet+JAX-RS von GAE?

2009-06-16 Thread Henrik Steer
I want to use JAX-RS von GAE, but it doesn't work. Restlet+GAE (w/o JAX-RS) works fine, Restlet+JAX-RS running locally in Jetty works fine too. But on GAE, i do get the following error message: org.restlet.engine.component.ChildContext fireContextChanged: For security reasons, don't pass the c

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread mstricker
Any ideas? It is urgent. Could it be because my RESTlet is deployed to a server and the GWT client runs on localhost and there are some security constraints? mstricker wrote: > > Hi, > > I have never worked with GWT or Restlet GWT but now have the need to > consume a simple Restlet service fro