Hi This is the .jars used when we unit test the FTP component. You should make sure you use same version as well.
[INFO] [dependency:list] [INFO] [INFO] The following files have been resolved: [INFO] aopalliance:aopalliance:jar:1.0:test [INFO] com.sun.xml.bind:jaxb-impl:jar:2.1.6:compile [INFO] commons-logging:commons-logging:jar:1.1.1:test [INFO] commons-logging:commons-logging-api:jar:1.1:compile [INFO] commons-net:commons-net:jar:2.0:compile [INFO] javax.activation:activation:jar:1.1:compile [INFO] javax.xml.bind:jaxb-api:jar:2.1:compile [INFO] javax.xml.stream:stax-api:jar:1.0-2:compile [INFO] jsch:jsch:jar:0.1.40:compile [INFO] junit:junit:jar:3.8.2:test [INFO] log4j:log4j:jar:1.2.14:test [INFO] org.apache.camel:camel-core:jar:2.0-SNAPSHOT:compile [INFO] org.apache.camel:camel-core:test-jar:tests:2.0-SNAPSHOT:test [INFO] org.apache.camel:camel-spring:jar:2.0-SNAPSHOT:test [INFO] org.apache.ftpserver:ftplet-api:jar:1.0.0:test [INFO] org.apache.ftpserver:ftpserver-core:jar:1.0.0:test [INFO] org.apache.mina:mina-core:jar:2.0.0-M4:test [INFO] org.slf4j:slf4j-api:jar:1.5.6:test [INFO] org.slf4j:slf4j-log4j12:jar:1.5.6:test [INFO] org.springframework:spring-aop:jar:2.5.6:test [INFO] org.springframework:spring-beans:jar:2.5.6:test [INFO] org.springframework:spring-context:jar:2.5.6:test [INFO] org.springframework:spring-core:jar:2.5.6:test [INFO] org.springframework:spring-tx:jar:2.5.6:test On Thu, Apr 2, 2009 at 7:56 PM, DavidArthurScott <[email protected]> wrote: > > I just tried a few other methods of trying to download files from an FTP > server.. take a look at this code as well: > > CamelContext context = new DefaultCamelContext(); > try { > context.addRoutes(new RouteBuilder() { > public void configure() throws Exception { > String ftpUrl = > "ftp://myusern...@localhost:" + "21" > + > "/incoming/?binary=true" > + > "&password=mypassword&consumer.delay=50&consumer.setNames=true"; > String fileUrl = > "file:///c:/inbox/?noop=true&autoCreate=true"; > from(ftpUrl).to(fileUrl); > } > }); > context.start(); > > } catch (Exception e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > My libraries are commons-logging-1.1 > antlr-3.0.1 > commons-net > jcr-1.0 > restlet-1.0 > jaxen-1.1-beta-9 > j2ee > commons-codec-1.3 > spring-2.5.5 > apache-camel-1.4.0 (tried 1.5 and 2.0 as well) > > Basically camel establishes a connection to an FTP server but it doesn't > download any of the files after it connects. > > > > DavidArthurScott wrote: >> >> <camel:from >> uri="ftp://myusern...@mptnas/public/outgoing/Shapefiles?password=mypassword&&consumer.delay=100"/> >> >> I'm trying to download all of the files from an FTP server but camel just >> connects to the server and hangs. It won't download any files.. any >> suggestions? >> > > -- > View this message in context: > http://www.nabble.com/Camel-FTP-Endpoint-doesn%27t-work--tp22851380p22853449.html > Sent from the Camel - Users (activemq) mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration
