You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Freeman Fang <fr...@gmail.com> on 2012/02/02 07:47:07 UTC

Re: exception of FtpFileSystemConfigBuilder.getInstance()

Hi,

Seems you miss to import org.apache.commons.net.ftp.parser package,  
it's a different package with org.apache.commons.net.ftp which you  
already import.

Freeman
On 2012-1-26, at 下午7:13, andys wrote:

> Hello.
>
> I use servicemix 4.3.1.
> I am developing a Camel route for working with vfs.
> The route contains processor with a next code:
>
> /FtpFileSystemConfigBuilder instance =
> FtpFileSystemConfigBuilder.getInstance(); /
> it throws exception: /java.lang.NoClassDefFoundError:
> org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory/
>
> Of cource, all needed features installed.
> Moreover, I used strict policy for "Import-Package"
> / 
> org 
> .apache 
> .commons.vfs.provider.ftp;version="1.0";resolution:="mandatory",
> org.apache.commons.net.ftp;version="2.2";resolution:="mandatory"/
> and my bundle successfully started after deploy.
>
> It's a remarkable detail, I can write in the my processor:
> /FTPFileEntryParserFactory ftpFileEntryParserFactory = new
> DefaultFTPFileEntryParserFactory();/
> and instance of FTPFileEntryParserFactory created successfully.
>
> Could anybody explain me root of trouble?
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/exception-of-FtpFileSystemConfigBuilder-getInstance-tp5432593p5432593.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com