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

2009-10-29 Thread Michael Mogley
Ah. Thank you thank you. I'll try it out with the correct annotation classes! Sent from my iPhone On Oct 28, 2009, at 12:41 PM, Stephan Koops stephan.ko...@web.de wrote: Hi Michael, ok, than you accessed the resource, but no entity is available in the Response. Now I've seen that you

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

2009-10-29 Thread Jerome Louvel
Hi Michael, In addition, I've also updated our documentation on Restlet edition for GAE in the wiki as it was referring to some outdated materials. For example you can leverage a simpler way to configure the ServerServlet: http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html

RE: Persistent connections

2009-10-29 Thread Jerome Louvel
Hi Rickard, The internal HTTP client doesn't support persistent connections yet. There is a plan to add support though: Support advanced HTTP connection features http://restlet.tigris.org/issues/show_bug.cgi?id=304 For now, if such feature is essential to you, I recommend leveraging our other

RE: Re: RestletFrameworkServlet missing from M5 and snapshot builds

2009-10-29 Thread Jerome Louvel
Hi Cedric, Please let us know if the Spring extension works fine on GAE and we'll include it in the Restlet edition for GAE for the next snapshot! Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~

RE: http connection timeout and version 1.1.6

2009-10-29 Thread Jerome Louvel
Hi Jim, When a Client instance is created, it creates and wraps an internal helper. In your case, the additional helper that you create should have no effect on the client previously created, even if you pass it in the constructor... I have just tested that it works in Restlet 2.0 (SVN trunk)

Re: Building 1.1.6 with maven and ant

2009-10-29 Thread Jim Alateras
Here is the requested file. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412529Testsuite: org.restlet.test.RestletTestSuite Tests run: 18, Failures: 1, Errors: 0, Time elapsed: 2.342 sec - Standard Output

Re: http connection timeout and version 1.1.6

2009-10-29 Thread Jim Alateras
strange that my trst cas Hi Jim, When a Client instance is created, it creates and wraps an internal helper. In your case, the additional helper that you create should have no effect on the client previously created, even if you pass it in the constructor... strange because i wrote a

ant stage-maven-2 is not working...

2009-10-29 Thread Jim Alateras
do i need to enable something in build.properties to get this going? cheers /jima -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412551

Re: ant stage-maven-2 is not working...

2009-10-29 Thread Jim Alateras
my bad should've looked in build.properties # Indicates if the Maven distribution should be regenerated. maven: true cheers /jima On 29/10/2009, at 10:01 PM, Jim Alateras wrote: do i need to enable something in build.properties to get this going? cheers /jima

Re: UrlConneciton based HTTP client tiimeouts

2009-10-29 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. apologies for the piecemeal emails but can you tell me when you reckon 1.1.7 will be available? --

Deploying local staged repository to remote maven repository

2009-10-29 Thread Jim Alateras
Gents, What do you guys use to copy the stages files generated from ant stage- maven-2 to a remote maven2 repository. cheers /jima -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412585

How to configure an authenticated router

2009-10-29 Thread legege
Hi, I'm trying to configure an authenticated router for a sub-path. This is not working: @Override public Restlet createInboundRoot() { Router protectedRouter = new Router(getContext()); protectedRouter.attach(/api/site, SiteResource.class); //$NON-NLS-1$ ChallengeAuthenticator

Dependency on gwt-servlet in the JEE edition

2009-10-29 Thread legege
Is it normal that the org.restlet.jee:org.restlet depends on com.google.gwt:gwt-servlet? It seems odd. -- View this message in context: http://n2.nabble.com/Dependency-on-gwt-servlet-in-the-JEE-edition-tp3912585p3912585.html Sent from the Restlet Discuss mailing list archive at Nabble.com.

RE: logging framework for restlet

2009-10-29 Thread Jerome Louvel
Hi Arjohn, I finally found time to work on my latest suggestion. I've just checked in SVN trunk a new org.restlet.engine.log.LoggerFacade class which relies on JULI by default. There is also a new org.restlet.ext.slf4j extension which provides a Slf4jLoggerFacade acting as an optimal bridge to

RE: ant stage-maven-2 is not working...

2009-10-29 Thread Jerome Louvel
Hi Jim, No problem. Please note that for such messages, we recommend posting to the c...@restlet.tigris.org mailing list instead. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com

RE: UrlConneciton based HTTP client tiimeouts

2009-10-29 Thread Jerome Louvel
Jim, We plan to release 1.1.7 next month with 2.0 M6, unless an urgent security issue appears. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Jim Alateras

RE: http connection timeout and version 1.1.6

2009-10-29 Thread Jerome Louvel
Jim, This is weird indeed, maybe I miss something but client doesn't have a link to your helper variable, despite the fact that you pass client to the constructor of HttpClientHelper. So, the helper is properly configured but the client wouldn't leverage it. Client was designed to be thread

RE: Deploying local staged repository to remote maven repository

2009-10-29 Thread Jerome Louvel
Jim, The copy is done locally on our build machine which happens to be our Web server as well :) Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Jim

Re: restlet 1.1.6 with equinox ?!

2009-10-29 Thread Moritz Maisel
Hi Jerome, thanks for the reply. I finally got restlet 1.1.6 running in Equinox: Instead of placing restlet in the bundle of my project (seems to be a typical osgi-newbie failure), I registered it as a seperate bundle. Besides having restlet running I now have a clean OSGi setup. Regards

Re: Null Context in ServerResource through SpringBeanFinder

2009-10-29 Thread Dustin N. Jenkins
Hi Jerome, I sent a tar file containing the source and WAR file, but the attachment was 4.4M in the end. It sent fine, but I haven't seen it pop up on here. Is there a better way to get it to you? Or will it come through eventually? Thanks, Dustin Jerome Louvel wrote: Hi Dustin,

Re: How to configure an authenticated router

2009-10-29 Thread legege
I found the solution... we simply have to return the authenticator. Router router = new Router(getContext()); router.attach(/api/site, SiteResource.class); //$NON-NLS-1$ ChallengeAuthenticator authenticator = new ChallengeAuthenticator(getContext(),

Enforcing HTTP accept header

2009-10-29 Thread legege
Hi, Is there a way to enforce the HTTP Accept header? Thanks -- View this message in context: http://n2.nabble.com/Enforcing-HTTP-accept-header-tp3914375p3914375.html Sent from the Restlet Discuss mailing list archive at Nabble.com. --

Xstream naming convension

2009-10-29 Thread legege
I would suggest to rename XstreamRepresentation to XStreamRepresentation (capital S), to follow the naming of the XStream library itself. This would also affect the setXstream() method, which should become setXStream(). What's your thought? Thanks -- View this message in context:

Re: Enforcing HTTP accept header

2009-10-29 Thread Ben R Vesco
As in, enforce a particular value in it? Check here: http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/130-restlet.html which shows us we can get the value from the header by querying the ClientInfo object like this: request.getClientInfo().getAcceptedMediaTypes() Which will return a list

SEVERE: don't pass the component context to child Restlets anymore

2009-10-29 Thread Jim Alateras
Gents, I am using the latest on 1.1 branch and am getting a whole lot of SEVERE errors. while running my test cases but they seem to be benign. SEVERE: For security reasons, don't pass the component context to child Restlets anymore. Use the Context#createChildContext() method

Re: Null Context in ServerResource through SpringBeanFinder

2009-10-29 Thread Dustin N. Jenkins
From some further investigation, it looks like the problem stems from the Finder class still using the deprecated methods, which require the Resource class instead of the ServerResource class. Fixing this may be as simple as overriding the findTarget() method to return the result of the

Re: SEVERE: don't pass the component context to child Restlets anymore

2009-10-29 Thread Bruno Harbulot
Hi Jim, It's actually quite important to separate the various settings you pass to the Component (and the connectors) from those you pass to the Application itself. This way, you prevent leakage of sensitive information (such as private keys for SSL connectors) to the Application. One easy way

custom authentication ??

2009-10-29 Thread Ty
Hi, I am trying to implement my own authentication (and then authorisation) in restlet; but I am having some trouble. Hopefully someone can give me a hand; the doco seems somewhat out of date with respect to jax-rs. I have a jax-rs restlet server that will receive a HTTP message that includes

Re: logging framework for restlet

2009-10-29 Thread Tal Liron
Small mistake in the wiki: It says: org.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLogFacade But it should be: org.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade Jerome, this is a small but very considerate addition to Restlet. It's always good to

RE: Re: RestletFrameworkServlet missing from M5 and snapshot builds

2009-10-29 Thread Cedric Hurst
This seems to run fine in my local environment, but when I attempt to run directly on the app engine and access a URI mapped to my RestletFrameworkServlet, I get the following error... avax.servlet.ServletException: java.lang.SecurityException: Google App Engine does not support subclasses of