4 Replies Latest reply on Oct 12, 2010 7:17 PM by jomclaughlin_jomclaughlin

    camel-ftp error: No component found with scheme: ftp

    jomclaughlin_jomclaughlin

      I am trying out fuse esb 4.3.0 (apache-servicemix-4.3.0-fuse-00-00) and this error is driving me nuts. After I start servicemix, I load camel-ftp:

       

      karaf@root> features:install camel-ftp

       

      which doesn't report any problems, although I did need to add the fuse repos to org.ops4j.pax.url.mvn.cfg.

       

      I then drop a camel-context.xml into the deploy directory with the contents below:

       

       

       

       

       

      Which fuse detects and then coughs up the following stackbomb:

       

       

      Exception in thread "SpringOsgiExtenderThread-6" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[ftp://user:password@localhost/tmp/test.txt?bi... because of Failed to resolve endpoint: ftp://user:password@localhost/tmp/test.txt?binary=false&consumer.delay=30000 due to: No component found with scheme: ftp

              at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1126)

              at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)

              at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:231)

              at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)

              at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)

              at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)

              at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)

              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)

              at java.lang.Thread.run(Thread.java:637)

      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[ftp://user:password@localhost/tmp/test.txt?bi... because of Failed to resolve endpoint: ftp://user:password@localhost/tmp/test.txt?binary=false&consumer.delay=30000 due to: No component found with scheme: ftp

              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:143)

              at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:559)

              at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1207)

              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1076)

              at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:986)

              at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)

              at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56)

              at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:946)

              at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)

              at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)

              ... 10 more

      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: ftp://user:password@localhost/tmp/test.txt?binary=false&consumer.delay=30000 due to: No component found with sc

      heme: ftp

              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:398)

              at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)

              at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:153)

              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)

              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)

              at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:73)

              at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)

              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:698)

              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:138)

              ... 19 more

       

       

      Any help would be greatly appreciated.

       

      Thanks,

      Jim