Re: camel-ftp problems with ftps implicit mode

2010-06-14 Thread Bengt Rodehav
Claus, Not sure if you're still reading this conversation since it hasn't been about ftps for a while - I'll give it a try though. I've now tested your ftps enhancement against Filezilla and Serv-U. It works. However, I noticed the following: If option "execPbsz" is not set then the PBSZ command

Re: camel-ftp problems with ftps implicit mode

2010-06-14 Thread Bengt Rodehav
Willem, Just rebuilt Camel with the latest changes. It now works. Thanks a lot - I really appreciate your help, /Bengt 2010/6/14 Willem Jiang > Bengt Rodehav wrote: > >> Helllo Willem, >> >> Really interesting URL about the OSGi improvements in Camel. Will these >> things be part of Camel 2.4

Re: camel-ftp problems with ftps implicit mode

2010-06-13 Thread Willem Jiang
Bengt Rodehav wrote: Helllo Willem, Really interesting URL about the OSGi improvements in Camel. Will these things be part of Camel 2.4? When? In what state is the new OSGi support? Guillaume mentions that he is creating services that one can depend on (which is what I have discussed with hime o

Re: camel-ftp problems with ftps implicit mode

2010-06-13 Thread Bengt Rodehav
Helllo Willem, Really interesting URL about the OSGi improvements in Camel. Will these things be part of Camel 2.4? When? In what state is the new OSGi support? Guillaume mentions that he is creating services that one can depend on (which is what I have discussed with hime on another thread). If t

Re: camel-ftp problems with ftps implicit mode

2010-06-13 Thread Willem Jiang
Hi Bengt, You need also add the package import of "META-INF/services/org/apache/camel/component/" As the OsgiFactoryFinder is changed to use camel application bundle to load the resource, you need to make sure your application bundle has the right to access the file. BTW, there are some di

Re: camel-ftp problems with ftps implicit mode

2010-06-12 Thread Bengt Rodehav
Actually I seem to get this exception every time I create my route (at which time I also create a new camel context). My route looks like this: from(fromUri).to(toUri); where fromUri is: file://fromFolder?delay=1000&move=archive/${date:now:MMdd}/${file:name}&moveFailed=failed/${file:name.noe

Re: camel-ftp problems with ftps implicit mode

2010-06-12 Thread Bengt Rodehav
Willem, There might still be some OSGi related problems. When testing different failing scenarios I got the following exception: 21:44:59,398 | DEBUG | guration Updater | FileEndpoint | mponent.file.GenericFileEndpoint 138 | No strategy factory defined in 'META-INF/services/o

Re: camel-ftp problems with ftps implicit mode

2010-06-12 Thread Bengt Rodehav
Hi Willem, That worked - thanks! I added the following: org.apache.camel.* which did the trick. I think it's probably hard to know what exact classes/packages will be used "under the hood" which is why I used the dynamic import. I would suggest that a Wiki page regarding how to use Camel in

Re: camel-ftp problems with ftps implicit mode

2010-06-11 Thread Willem Jiang
Hi Bengt, I ran the test and find the OsgiClassResolver is using the bundle of you camel application to load the class. So you need to add the import package of "org.apache.camel.component.file.strategy" into your camel application bundle. Willem Bengt Rodehav wrote: Willem, I've tried to

Re: camel-ftp problems with ftps implicit mode

2010-06-11 Thread Bengt Rodehav
Willem, I've tried to modify spring-osgi to make it possible to import the org.apache.camel.component.file.strategy package from camel-core but I haven't succeeded. I've used explicit import as well as dynamic. When I use explicit import I can see (via the webconsole) that spring-osgi does indeed

Re: camel-ftp problems with ftps implicit mode

2010-06-11 Thread Bengt Rodehav
Willem, I've done some more digging in order to understand what is happening. Apparently spring-osgi embeds the OsgiClassResolver class (it is specified as a Private-Package). The class that the resolver is trying to resolve is: org.apache.camel.component.file.strategy.GenericFileProcessStrateg

Re: camel-ftp problems with ftps implicit mode

2010-06-11 Thread Bengt Rodehav
Hello again Willem! Maybe we should switch thread since this presently has nothing to do with ftps... Anyway, it's going to be pretty hard for me to extract a small test case. Not sure I will be enable to do it. Just out of curiosity, did you also try a "ftps:" endpoint? Also, I've been doing so

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
Hi Bengt, I just tried to use some file endpoint inside our camel OSGi test platform, the route is started without any issue. Can you create a small test case which is based on you application and submit it into a JIRA ? In this way I can keep on digging the issue :) Willem Bengt Rodehav wr

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Bengt Rodehav
I now get the following exception: java.lang.TypeNotPresentException: Type org.apache.camel.component.file.strategy.GenericFileProcessStrategyFactory class not found not present at org.apache.camel.component.file.GenericFileEndpoint.createGenericFileStrategy(GenericFileEndpoint.java:145)

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
Bengt Rodehav wrote: Willem, I'm just now building a new trunk version of Camel and need to verify with you that I'm using Camel properly in an OSGi environment: - I only install the features "camel" (includes camel-core and camel-spring bundles) + camel-ftp (that I wish to test) That could b

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Bengt Rodehav
Willem, I'm just now building a new trunk version of Camel and need to verify with you that I'm using Camel properly in an OSGi environment: - I only install the features "camel" (includes camel-core and camel-spring bundles) + camel-ftp (that I wish to test) Do I need camel-spring if I'm not u

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
Hi Bengt, It's a typo, I just fixed it with an OSGi unit test. Please check out the last camel trunk code to keep on riding with Camel :) Willem Bengt Rodehav wrote: Thanks Willem - what a relief... I eagerly await the results from your digging, /Bengt 2010/6/10 Willem Jiang I can reprod

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Bengt Rodehav
Thanks Willem - what a relief... I eagerly await the results from your digging, /Bengt 2010/6/10 Willem Jiang > I can reproduce the error that you met, there must be something wrong with > current OSGi refactoring, > I will keep digging to see if I can fix this issue soon. > > Willem > > > Ben

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
I can reproduce the error that you met, there must be something wrong with current OSGi refactoring, I will keep digging to see if I can fix this issue soon. Willem Bengt Rodehav wrote: Thanks for your reply Willem, I've tried various combinations of camel features. Right now I use the "camel

Re: camel-ftp problems with ftps implicit mode

2010-06-09 Thread Bengt Rodehav
Thanks for your reply Willem, I've tried various combinations of camel features. Right now I use the "camel" feature (plus camel-ftp since that's what I'm trying to test). In runtime I can see the camel-core, camel-spring and the camel-ftp bundles installed and active. I manage to create an OsgiDe

Re: camel-ftp problems with ftps implicit mode

2010-06-09 Thread Willem Jiang
Hi Bengt, Did you use the apache camel feature of the Camel 2.4-SNAPSHOT ? If so, you just need to install the feature of camel, it includes the camel-core feature and camel-spring feature. And you can still use org.apache.camel.osgi.CamelContextFactory to create the camel context :) Wille

Re: camel-ftp problems with ftps implicit mode

2010-06-09 Thread Bengt Rodehav
Claus, I have now managed to build Camel version 2.4-SNAPSHOT. However, I can't get my application to work on that version. I'm using Karaf 1.6.0 for deployment and something has definitely changed in Camel regarding OSGi. I haven't figured out how to use Camel 2.4-SNAPSHOT in Karaf yet. Maybe you

Re: camel-ftp problems with ftps implicit mode

2010-06-07 Thread Claus Ibsen
On Mon, Jun 7, 2010 at 4:30 PM, Bengt Rodehav wrote: > Claus, > > I have now tested my version using both passive and active (which requires a > certificate) mode. I've tested against a free ftp server - Filezilla - and a > commercial ftp server (that we often use) - Serv-u. It works fine. > > I h

Re: camel-ftp problems with ftps implicit mode

2010-06-07 Thread Bengt Rodehav
Claus, I have now tested my version using both passive and active (which requires a certificate) mode. I've tested against a free ftp server - Filezilla - and a commercial ftp server (that we often use) - Serv-u. It works fine. I haven't tested your version yet because it requires me to build my

Re: camel-ftp problems with ftps implicit mode

2010-06-04 Thread Bengt Rodehav
God you're fast. I made my own attempts and attached diff files to the JIRA issue you created. I also added a couple of comments/suggestions to the issue. In short I believe that it is probably easier for the user/developer if it is enough to specify whether a secure data channel should be used or

Re: camel-ftp problems with ftps implicit mode

2010-06-04 Thread Claus Ibsen
Hi On Fri, Jun 4, 2010 at 3:42 PM, Bengt Rodehav wrote: > OK, will try to do that sometime this weekend. > > Will be in touch, > I was one step ahead of you. I created the ticket and took a stab at resolving it. https://issues.apache.org/activemq/browse/CAMEL-2790 Can you try with the latest so

Re: camel-ftp problems with ftps implicit mode

2010-06-04 Thread Bengt Rodehav
OK, will try to do that sometime this weekend. Will be in touch, /Bengt 2010/6/4 Claus Ibsen > Hi > > Well spotted. Do you mind creating a JIRA ticket and link to this post > using nabble etc. > And you may even want to contribute a patch :) > > > On Fri, Jun 4, 2010 at 11:34 AM, Bengt Rodehav

camel-ftp problems with ftps implicit mode

2010-06-04 Thread Bengt Rodehav
I'm using camel-ftp for secure ftps communication. I need to be able to connect to a wide range of ftps servers in both explicit and implicit mode. I have encountered problems using camel-ftp for ftps communication in implicit mode. Some ftps servers require that the file transfer is encrypted (no

Re: camel-ftp problems with ftps implicit mode

2010-06-04 Thread Claus Ibsen
Hi Well spotted. Do you mind creating a JIRA ticket and link to this post using nabble etc. And you may even want to contribute a patch :) On Fri, Jun 4, 2010 at 11:34 AM, Bengt Rodehav wrote: > I'm using camel-ftp for secure ftps communication. I need to be able to > connect to a wide range of