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

2009-10-21 Thread webpost
Absolutely brilliant! Seems to work perfectly. Thank you so very much. I'll throw this up on the wiki so the next person doesn't have to ask the same question again. --

How to register scheme in restlet engine?

2009-10-21 Thread Cobse
I am using Restlet Version 2.0 Milestone 5 (testing). When i try to create ChallengeResponse and set in ClientResource i get the below warning: org.restlet.engine.security.AuthenticatorUtils format WARNING: Challenge scheme SID6 not supported by the Restlet engine. Below is the code:

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

2009-10-21 Thread Vlatko Davidovski
Thanks for checking it out Rob. Unfortunately did not work for me, and I again get the following: Oct 20, 2009 6:18:55 PM org.restlet.service.ConverterService toRepresentation WARNING: Unable to find a converter for this object : org.restlet.representation.stringrepresentat...@a44085 Oct 20, 2009

RE: CLAP - restlet-jee-2.0snapshot

2009-10-21 Thread webpost
Hi, is anyone there to help? Thanks! Dear All, I am using the restlet-jee-2.0snapshot, jdk5.0 on Tomcat 5.5. I have an application.properties file: WEB-INF/classes/application.properties But I keep getting the following error: java.lang.IllegalArgumentException: Cannot access to the

RE: Retrieving Login in a resource

2009-10-21 Thread Laurent Garrigues
Hello Jerome, First, thanks for your response, it resolve my issue. I use MD5 on the password because it is encrypt in MD5 in my database ( I know it's not very safe, but it's the directive of my manager). Kind regards Laurent Garrigues --

Re: HTTP_BASIC authentication doesn't work in GAE

2009-10-21 Thread Patrizio Munzi
Hi Jerome, thanks for the snippet. My error was returning the guarded router instead of the authenticator. That way worked in M4 outside GAE/J. Anyway I just verified that everything works fine. Do you know when M5 will be released?? Thanks again. Jerome Louvel wrote: Hi

RE: HTTP_BASIC authentication doesn't work in GAE

2009-10-21 Thread Jerome Louvel
Hi Patrizio, Thanks for the confirmation ! Restlet 2.0 M6 is expected next month. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org/ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com/ http://www.noelios.com

Re: Get secrets in resources

2009-10-21 Thread Laurent Rustuel
Hello, gonzajg a écrit : Is there a way to get the challengeresponse in resources? You should be able to get them in a ServerResource using ServerResource#getChallengeResponse() Then you could do a *getIdentifier()* and *getSecret()* Laurent. -- Laurent Rustuel, Alten contractor for Genesys,

Trouble with ServerServlet

2009-10-21 Thread Rickard Öberg
Hi, I'm having some trouble with ServerServlet, and am a bit stuck. What I've done is to subclass ServerServlet and override the createApplication() method to create and return my own subclass of Application. Then, in start() I create and initialize my whole internal application setup. When

Re: Get secrets in resources

2009-10-21 Thread gonzajg
thanks Laurent! it worked! Laurent Rustuel wrote: Hello, gonzajg a écrit : Is there a way to get the challengeresponse in resources? You should be able to get them in a ServerResource using ServerResource#getChallengeResponse() Then you could do a *getIdentifier()* and *getSecret()*

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

2009-10-21 Thread Rob Heittman
If the problem recurs with 2.0M5 or a recent trunk snapshot, let me know and I'll download Pax Runner / Felix to look again. I've seen the socket is not connected thing when I use the internal HTTP connector and certain browsers; it's not actually harmful, just annoying. The internal HTTP

Re: CLAP - restlet-jee-2.0snapshot

2009-10-21 Thread Rhett Sutphin
Hi, On Oct 20, 2009, at 10:46 AM, webp...@tigris.org wrote: Hi, is anyone there to help? Thanks! Dear All, I am using the restlet-jee-2.0snapshot, jdk5.0 on Tomcat 5.5. I have an application.properties file: WEB-INF/classes/application.properties But I keep getting the following

Re: Retrieving Login in a resource

2009-10-21 Thread Fabian Mandelbaum
Laurent, you can always calculate the MD5 hash on the server side, before trying to match the password with the one read from the database. There's no need to calculate it on the client at all. On Tue, Oct 20, 2009 at 12:40 PM, Laurent Garrigues laur...@speedinfo.fr wrote: Hello Jerome, First,

Ajax and Restlet

2009-10-21 Thread Rodo
Hello, i am having trouble in communicating between the Reslet example from tutorial: First resource and my ajax client. When i look at the restlet log seems everithing ok, i get INFO: 2009-10-2118:47:35127.0.0.1 - - 8182 GET / - 200 12

Router in servelet not routing to correct resource

2009-10-21 Thread Matt Stromske
Hello, I can't figure out why my router isn't routing to the correct resource. It always seems to route to the default route. I have 2 routes: router.attachDefault(DefaultResource.class); router.attach(/gpsh/test1,TestResource.class); My servlet container mapping:

Re: Get secrets in resources

2009-10-21 Thread Laurent Rustuel
Hello, gonzajg a écrit : Is there a way to get the challengeresponse in resources? You should be able to get them in a ServerResource using ServerResource#getChallengeResponse() Then you could do a *getIdentifier()* and *getSecret()* Laurent. -- Laurent Rustuel, Alten contractor for

Re: Router in servelet not routing to correct resource

2009-10-21 Thread Matt Kennedy
I'm not 100% sure based on that description, but try setting your second router line to: router.attach(/test1) On Oct 21, 2009, at 1:19 PM, Matt Stromske wrote: Hello, I can't figure out why my router isn't routing to the correct resource. It always seems to route to the default