I'm possibly interested in working with camel-restlet (2.0, since it doesn't exist before then). First off, is there any documentation besides that on http://camel.apache.org/restlet.html the restlet component page ?
I'm having two problems. The first is conceptual - the page that I linked above really doesn't describe how camel integrates with Restlet, it just shows a trivial "Hello, world!" level example. I can probably figure it out if I can get things working in general, but more documentation there would be helpful. Secondly, I can't get a (simpler) "Hello world" sample to work. At this point, I'm not interested in the authentication part. The following is the class that I'm using: public class CamelRest extends RouteBuilder { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { CamelContext context = new DefaultCamelContext(); context.addRoutes(new CamelRest()); context.start(); System.out.println("Server is ready"); while (true) { Thread.sleep(10000); } } @Override public void configure() throws Exception { from("restlet:http://localhost:8080/users").process(new Processor() { public void process(Exchange exchange) throws Exception { exchange.getOut().setBody("Hello World!"); } }); } } (with appropriate imports). When I hit http://localhost:8080/users, the following is the output that I see on my console: Jan 20, 2009 2:28:49 PM com.noelios.restlet.StatusFilter getStatus SEVERE: Unhandled exception or error intercepted java.lang.NoSuchMethodError: org.restlet.data.Form.getValuesMap()Ljava/util/Map; at org.apache.camel.component.restlet.DefaultRestletBinding.populateExchangeFromRestletRequest(DefaultRestletBinding.java:75) at org.apache.camel.component.restlet.RestletConsumer$1.handle(RestletConsumer.java:53) at org.apache.camel.component.restlet.MethodBasedRouter.handle(MethodBasedRouter.java:55) at org.restlet.Filter.doHandle(Filter.java:114) at org.restlet.Filter.handle(Filter.java:144) at org.restlet.Router.handle(Router.java:454) at org.restlet.Filter.doHandle(Filter.java:114) at org.restlet.Filter.handle(Filter.java:144) at org.restlet.Router.handle(Router.java:454) at org.restlet.Filter.doHandle(Filter.java:114) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:98) at org.restlet.Filter.handle(Filter.java:144) at org.restlet.Filter.doHandle(Filter.java:114) at org.restlet.Filter.handle(Filter.java:144) at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:129) at org.restlet.Component.handle(Component.java:240) at org.restlet.Server.handle(Server.java:291) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:109) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:103) at com.noelios.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:242) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Being new to Camel, I really don't know where to start. Thanks. -- View this message in context: http://www.nabble.com/restlet-usage-tp21572086s22882p21572086.html Sent from the Camel - Users mailing list archive at Nabble.com.