4 Replies Latest reply on Jul 23, 2009 8:11 AM by Jonathan Anstey

    FTP component install

    vector_jdev.work Newbie

      When trying to deploy route to read file from FTP it said "no component". It means I need to install ftp component for camel. I have fuse 4.1.0.2 pure install, go to features/install it is said

       

      ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandException: java.lang.RuntimeException: URL mvn:commons-net/commons-net/2.0 could not be resolved. (enable TRACE logging for details)

       

      Then I download fuse mediation router and copy camel-ftp-1.6.1.0-fuse.jar to deploy dir. When trying to start it is said org.osgi.framework.BundleException: Unresolved constraint in bundle 175: package (package=com.jcraft.jsch)

       

      I looked into headers of that bundle - it's said

      Import-Package: com.jcraft.jsch,org.apache.camel,org.apache.camel.component.file.remote;version="1.6.1.fuse"

       

      Where can I get a bundle with com.jcraft.jsch exported?? How to install ftp camel component??

      Thanks!

        • 1. Re: FTP component install
          vector_jdev.work Newbie

          Actually I download the required bundle from Spring Bundle Repo, but I am interested is it possible to install it from features?

           

          Also I am not able to read ftp file. Can you tell me how to read it and pass to log (as an example)

          • 2. Re: FTP component install
            Jonathan Anstey Novice

            is it possible to install it from features?

            I just downloaded the latest ESB distro like

            wget http://repo.fusesource.com/maven2/org/apache/servicemix/apache-servicemix/4.1.0.2-fuse/apache-servicemix-4.1.0.2-fuse.tar.gz
            

            started it and ran

            features/install camel-ftp
            

            which worked fine. Did you use some other command?

            Also I am not able to read ftp file. Can you tell me how to read it and pass to log (as an example)

            Did you look at the documentation on how to use the FTP component first?

            http://fusesource.com/docs/router/1.6/component_ref/_IDU_330.html

            • 3. Re: FTP component install
              vector_jdev.work Newbie

              Thanks for providing documentation on MR. It is great, thanks!!

               

              As for trying to install camel-ftp feature - I will try it later, now just want to finish my ftp task. I'll report here about results.

               

              One important question is about Camel 2.0 new components (like RSS reader).

              When 2.0 will be included in fuse?

              Can I install rss camel 2.0 components manually?

              Thanks.

              • 4. Re: FTP component install
                Jonathan Anstey Novice

                We'll probably be releasing MR 2.0 sometime around September (this is not an official release date though ).

                 

                Installing Apache Camel 2.0 components manually should be possible... though this wouldn't be a supported configuration until we've upgraded the ESB to use MR 2.0. To make that work though, you would have to strip out all MR 1.x components as MR 1.x and 2.0 are not API compatible.

                 

                Another option would be (if you have a support contract) to just put in a request to backport RSS support to the 1.x branch.

                 

                Hope this helps!

                 

                Cheers,

                Jon