RE: Starting a new web application, using Restlets

2008-03-10 Thread Jerome Louvel
Hi Marcus, Your approach to resources modeling sounds good. Resource subclasses, attached to a root router will compose your application. Then you can just attach your application to the component's default virtual host. Once you deploy to a real server with a domain name, you might want to

RE: Error on server

2008-03-10 Thread Jerome Louvel
Hi Jahid, Which version are you using? Check the latest 1.0.8 or 1.1 M2, those messages now have a lower log level preventing their display by default. Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Jahid Envoyé : dimanche 9 mars 2008

Re: Error on server

2008-03-10 Thread Jahid
Hi Jerome, I was using 1.0.7, then i moved to use 1.0.8 as you mentioned on your last post. But still the problem is same. Please if you think that there is some other way to solve this. Please let me know. This is really important for me. Thanks a lot for replying. Regards, Jahid

Re: Root URIs under Windows

2008-03-10 Thread Thierry Boileau
Hello Paul, I've tested this code below with both Restlet 1.1 (snapshot) and Restlet 1.0.8 and it works. Could you tell us more about your code? best regards, Thierry Boileau public static void main(String[] args) throws Exception { Component component = new Component();

RE: Error on server

2008-03-10 Thread Jerome Louvel
Hi Jahid, Are you sure you have updated all the JARs, including the com.noelios.restlet.ext.simple.jar file? I checked the code and the trace has definitely a lower log level. Could you send me the new log trace for 1.0.8? Best regards, Jerome -Message d'origine- De : news

Re: Restlet and Velocity template location.

2008-03-10 Thread Stian Soiland-Reyes
On Wed, Mar 5, 2008 at 8:03 AM, cleverpig [EMAIL PROTECTED] wrote: 1.I put template file in template directory which under classpath:templates\people.vm,by the way,I use Eclipse to develope these. 2.put velocity.properties under classpath: resource.loader = file I do it like this:

Re: RESTlet XML rendering issues

2008-03-10 Thread Rob Heittman
Great! I confirmed that trunk now runs Elliot's test case on Mac JDK5. On Mon, Mar 10, 2008 at 7:09 AM, Jerome Louvel [EMAIL PROTECTED] wrote: Hi Rob and Elliot, Thanks for nailing this issue. I have applied the patch to SVN trunk (only renaming getTransformer to createTransformer). I

Re: JSR-311 implementation initiative

2008-03-10 Thread Rob Heittman
Thanks for this, Stephan ... I admit to not yet really being sure what I'm going to use JSR 311 for in production, but it's great to get early and practical experience with it in the context of Restlet. On Mon, Mar 10, 2008 at 8:09 AM, Stephan Koops [EMAIL PROTECTED] wrote: Now the code has

Re: RESTlet XML rendering issues

2008-03-10 Thread Elliot Long
Superb guys, thanks! Good to know there's an active community backing this up. Any idea when this will make it into the website's downloads section, or will i need to check it out from subversion? -Elliot On 10 Mar 2008, at 14:14, Rob Heittman wrote: Great! I confirmed that trunk now

RE: restlet + spring --- managed resources

2008-03-10 Thread Jerome Louvel
Hi Brian, Please find attached the test case that we use for Spring. It doesn't produce a circular reference issue even if it looks similar to the one you use. Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Brian Donnovan Envoyé : samedi

RE: RESTlet XML rendering issues

2008-03-10 Thread Jerome Louvel
Elliot, We just released 1.0.8 and 1.1 M2 so it will take us a little while to reach 1.0.9 and 1.1 M3. Thierry is currently working on automating the refreshing of the snapshot version on the Web site (Zip, exe and Javadocs) daily. Stay tuned. Best regards, Jerome -Message

RE: Long stream of IOExceptions from getEntityAsForm

2008-03-10 Thread Jerome Louvel
Hi Sean, Good catch! This is now fixed as suggested in SVN trunk and 1.0 branch. Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Sean Envoyé : samedi 8 mars 2008 12:04 À : discuss@restlet.tigris.org Objet : Re: Long stream of

RE: Streaming multiple large data files through Restlet

2008-03-10 Thread Jerome Louvel
Hi Jon, [...] Yes, I'm sure we could present our data in any form, either as a stream or a channel. We have pretty much complete control over the system. The approach of a limited set of HTTP writer threads sounds good. OK If this approach could be completely hidden from me (the

Re: Root URIs under Windows

2008-03-10 Thread Paul J. Lucas
On Mar 10, 2008, at 1:45 AM, Thierry Boileau wrote: I've tested this code below with both Restlet 1.1 (snapshot) and Restlet 1.0.8 and it works. Could you tell us more about your code? I have my own classes derived from Directory and DirectoryResource. I override

RE: ModificationDate of representation of static resource using CLAP protocol

2008-03-10 Thread Jerome Louvel
Hi Keke, I've implemented the suggested change. It will work only if CLAP resource is file based. Checked in SVN trunk. Let me know if it works fine. Best regards, Jerome -Message d'origine- De : keke [mailto:[EMAIL PROTECTED] Envoyé : samedi 8 mars 2008 08:31 À :

RE: Root URIs under Windows

2008-03-10 Thread Jerome Louvel
Hi Paul, We made the choice to keep the URI reference unchanged and to provide Reference.decode()/encode() static methods instead. Now, maybe we could add getDecodedPath() and similar methods, but it might crop the class. Any thought? Best regards, Jerome -Message d'origine- De :

Re: Streaming multiple large data files through Restlet

2008-03-10 Thread John D. Mitchell
On Fri, Mar 7, 2008 at 7:41 AM, Jon Blower [EMAIL PROTECTED] wrote: [...] Thanks very much to everyone for very helpful responses on this. Perhaps I should go into a bit more detail about our application. We are writing an application for climate scientists that allows them to run climate

Re: Issue 376

2008-03-10 Thread Bruno Harbulot
Hi Jerôme, I've been busy with other things since I volunteered last week, so I haven't started to work on the getRemoteUser() sub-problem yet, but I think I've got a reasonable patch regarding the client certificates. There are a few problems, though. 1. Even with a clean download of the

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Aaron Crow
Hi Jerome and All, A related question: Is there a programmatic way to tell the Restlet engine to do a clean shutdown, and if so, what's the contract that it fulfills? I see that there is an Application.stop() method, but I'm a little confused about the purpose it serves. Code diving suggests

SSL and KeyStores

2008-03-10 Thread Bruno Harbulot
Hello, Whilst looking into Issue 376 http://restlet.tigris.org/issues/show_bug.cgi?id=376, I've been trying to implement a test that uses HTTPS, since I can't find one in the current test suite. There are a few problems I came across, mainly related to Issue 281

Re: Starting a new web application, using Restlets

2008-03-10 Thread Marcus
Thankyou Jerome, I am so impressed with the helpfulness of people in the Restlet community. It's another reason I am persevering with it! I have adopted the approach and I am now getting the results I was hoping for. I now have some more specific questions which I will post under my