Hello Benjamin, your application is hosted inside a component which provides several services, especially client connectors (see [1]). These connectors are shared by all hosted applications which rely on them when issueing client requests. You just need to declare them on the component: component.getClients().add(Protocol.HTTP); component.getClients().add(Protocol.FILE); // used for example by the Directory Restlet if t relies on the file system...
Best regards, Thierry Boileau [1] http://www.restlet.org/documentation/2.0/tutorial#part05 > Hello, > > I have a ServerResource with a @Post doAction() method. > > >From within that method I need to query some other server for information. > So I'm using > 'new ClientResource("http://server/uri").get()' > like I usually do in my other, non-request-handling methods. > > However in that case (from within a @Post method) that fails with the > following message : > > 17 nov. 2009 18:18:37 org.restlet.engine.component.ClientRouter getNext > ATTENTION: The protocol used by this request is not declared in the list of > client connectors. (HTTP) > > What am I doing wrong? Is that a Context issue? Should I be using something > else? I'm searching but I'm running out of ideas. > > Thanks a lot. > > Ben. > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2419027 > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2419364

