From user-return-20248-apmail-commons-user-archive=commons.apache.org@commons.apache.org Thu Nov 29 08:47:25 2007 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 27924 invoked from network); 29 Nov 2007 08:47:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 08:47:24 -0000 Received: (qmail 18963 invoked by uid 500); 29 Nov 2007 08:47:08 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 18909 invoked by uid 500); 29 Nov 2007 08:47:08 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 18899 invoked by uid 99); 29 Nov 2007 08:47:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 00:47:08 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.106.126.7] (HELO TLN-EXCH.FUSIONONE.EE) (194.106.126.7) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 08:47:07 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [vfs] FTP File is Not a File? Date: Thu, 29 Nov 2007 10:47:42 +0200 Message-ID: <1C53D0F7091D224C9A2E5B06CC05AF0001B8D47F@tln-exch.corp.fusionone.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [vfs] FTP File is Not a File? Thread-Index: AcgyKr69NeO+kiMSRQqkiOiL2iIhKgAOW4iA From: "Artamonov, Juri" To: "Jakarta Commons Users List" X-Virus-Checked: Checked by ClamAV on apache.org I couldn't get it as well before since I always was getting UrlFileProvider. After I looked on the code I see that providers.xml contains=20 That means org.apache.commons.net.ftp.FTPFile should be in your classpath. After I added the corresponding library it works. Best regards, Juri. -----Original Message----- From: jcarman@carmanconsulting.com [mailto:jcarman@carmanconsulting.com] On Behalf Of James Carman Sent: Thursday, November 29, 2007 3:53 AM To: Jakarta Commons Users List Subject: [vfs] FTP File is Not a File? I accidentally posted this on the dev list earlier. I meant to send it to user@. Sorry for cross-posting. Can someone else try this out, please? I don't know what's going on here. I can access the file by pasting the URL into my browser(s) and via a text-based FTP client, but I can't get Java to download it. I tried using URL objects and that doesn't work either. I figured VFS would be able to handle it: FileSystemManager fsm =3D VFS.getManager(); FileObject fo =3D fsm.resolveFile("ftp://rgd.mcw.edu/pub/data_release/README.txt"); fo.getContent(); If anyone has any ideas, please let me know. Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org