Hi Anjana!
>             jarFile = (FtpFileObject)
> fsManager.resolveFile("ftp://pulsar007:[EMAIL PROTECTED]/",opts);
> But when i try to list the children, i get an error. i tried getting
> the latest vfs version, commons-vfs-20060815.jar. when i do ftp
> manually to this host, i dont have any issues.  Can some one please
> guide me? Thanks!
Maybe it is the localization issue.
VFS uses commons-net to access the server. commons-net parses the
directory response to create the list of children. To make this work
commons-net needs to know the language used if it is not english.

The FtpFileSystemConfigBuilder provides some setters to configure the
commons-net language settings.

To see if the default commons-net setup correctly recognize the
directory listing you can use

java org.apache.commons.vfs.libcheck.FtpCheck username password host
directory

If you also get null entries with it, you have to configure the language
settings.
Please see
http://jakarta.apache.org/commons/net/api/org/apache/commons/net/ftp/FTPClientConfig.html
for a detailed description, it should be easy to map it to the
FtpFileSystemConfigBuilder.

Please report back if this did the trick.
Thanks!

Ciao,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to