On Tue, Feb 5, 2013 at 5:43 AM, AMARNATH, Balachandar <balachandar.amarn...@airbus.com> wrote: > Hello, > > I tried to do a file transfer using apache camel route using the following > route > > from("ftp://<user>@<host_ip>/etc/?password=<password>") > .process(new Processor() { > public void process(Exchange exchange) throws Exception { > // do something > } > }).to("file:///tmp/"); > > I end up with the following error, > > Exception in thread "main" org.apache.camel.FailedToCreateRouteException: > Failed to create route route1: Route... because of Failed to resolve > endpoint: due to: No component found with scheme: ftp > > I installed camel-ftp and the jar file camel-ftp.jar is in the classpath >
You need the transitive JARs as well. eg camel-ftp uses commons net and jcraft for the actual FTP libraries. If you use maven then its very easy as just depend on camel-ftp and Maven will do that for you. If not using maven you need to add those JARS manually. > Any hint will be highly appreciated > > > > With thanks and regards > Balachandar > > > > > The information in this e-mail is confidential. The contents may not be > disclosed or used by anyone other than the addressee. Access to this e-mail > by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately and > delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness of > this e-mail as it has been sent over public networks. If you have any > concerns over the content of this message or its Accuracy or Integrity, > please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus > scanning software but you should take whatever measures you deem to be > appropriate to ensure that this message and any attachments are virus free. > -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen