Beginning WADL question...
I am trying to follow the example in 6.3 of the latest version of Restlet in Action to add WADL generation to my Restlet (GAE edition) app. My application extends WadlApplication /public class CommitmentServerApplication extends WadlApplication {/ All my resources extend /WadlServerResource/ (but do not override any WADL methods yet) My application attaches the server resources... @Override public Restlet createInboundRoot() { Router router = new Router(getContext()); router.attach("/", RootServerResource.class); router.attach("/commitments/", CommitmentsServerResource.class); router.attach("/commitment/{commitmentId}", CommitmentServerResource.class); return router; } My client code is: ClientResource service = new ClientResource("http://localhost:";); System.out.println(service.options().getText()); Yet when I run this I only get information about the root resource, it does cascade down to any of the attached server resources (output shown below). Any idea what I am missing? (I have looked at the sample code, but the difference is eluding me). Thanks so much! RB Output... http://wadl.dev.java.net/2009/02";> Root Resource Description This is the text content for the doc that is the representation of the root - where on earth does this appear -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Beginning-WADL-question-tp7328225p7328225.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2927897
USing Freemarker with ServletAdapter
Hi, I am integrating Guice and Restlet in an approach that involves using ServletAdapter instead of wiring up ServerServlet. Everything works fine until I want to involve a representation that comes from Freemarker. The problems seem to come from the fact that I can't properly set the client protocol and the Component level in Restlet when I'm using ServletAdapter. Freemarker and Restlet work OK together for me when I use ServerServlet and set the CLAP protocol through web.xml. Unless I'm missing something, I cannot find a way to set the CLAP protocol into Component when using ServletAdapter. I can provide code snippets if it helps. Any suggestions? Thanks! -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/USing-Freemarker-with-ServletAdapter-tp7327160p7327160.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2927727
Re: SSL needClientAuthentication not working
Quick followup- I have found the same issue. I am using Restlet 2.1 RC2, with the Jetty connector, and found that the "needClientAuthentication" = "true" parameter in DefaultSslContextFactory does not seem to be working. I downgraded to 2.0.11, fixed the few things needed to get it to compile*, and the Client Certificate requirement seems to work fine. Thanks, all. -John Wismar *For reference: the only things I had to change was that DefaultSslContextFactory is in a different package, and I commented out calls to Engine.setLogLevel(). -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/SSL-needClientAuthentication-not-working-tp7045620p7326565.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2927697
RE: 2.1M7 - Internal HTTP Connector - Overload Error
Hi Alessandro, We are aware of this issue and plan to finally fix it for 2.1 RC4, stay tuned! Best regards, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel -Message d'origine- De : Alessandro Pacifici [mailto:alessandro.pacif...@gmail.com] Envoyé : lundi 27 février 2012 11:43 À : discuss@restlet.tigris.org Objet : RE: 2.1M7 - Internal HTTP Connector - Overload Error I had the same problem using 2.1-RC1. I had to restart my server application to stop receiving those messages. Is there a way to detect the overload, so in the rare case the problems appears I could automatically restart? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=29272 18 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2927661