Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 64067 invoked from network); 20 Jun 2006 13:09:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 13:09:02 -0000 Received: (qmail 3147 invoked by uid 500); 20 Jun 2006 13:08:57 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 2943 invoked by uid 500); 20 Jun 2006 13:08:56 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 2923 invoked by uid 99); 20 Jun 2006 13:08:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 06:08:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [68.142.229.217] (HELO smtp103.biz.mail.re2.yahoo.com) (68.142.229.217) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 20 Jun 2006 06:08:55 -0700 Received: (qmail 39180 invoked from network); 20 Jun 2006 13:07:34 -0000 Received: from unknown (HELO SIBISOFTTahir) (tahir@spectrum-tech.com@202.141.252.246 with login) by smtp103.biz.mail.re2.yahoo.com with SMTP; 20 Jun 2006 13:07:29 -0000 From: "Tahir Akhtar" To: "'Jakarta Commons Users List'" Subject: RE: FTPClient works on Windows, not on FC4 Date: Tue, 20 Jun 2006 18:08:31 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <4497F099.9040205@sysconet.ca> Thread-Index: AcaUaRFWs69h6UfkSjqOFFXdw+QLwQAALiQg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060620130855.B275B10FB001@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Rizwan, I haven't ever used the FTP client directly. I think you should state your case more elaborately to elicit a response from the experts on the list. Something like below: Its working when Client running on: Windows Server running on: Windows Server Application: IIS FTP Its *Not* working when Client running on: Windows Server running on: FC 4 Server Application: ftpd Any other related information like logs, exceptions etc Regards, Tahir -----Original Message----- From: Rizwan Merchant [mailto:rizwan.merchant@sysconet.ca] Sent: Tuesday, June 20, 2006 5:57 PM To: Jakarta Commons Users List Subject: Re: FTPClient works on Windows, not on FC4 Hi Tahir, I think the permissions are ok...the problem occurs even before the FTPClient tries to "get" the files. As I mentioned, when the "listFiles()" method is invoked on the directory, I get back 0 files in the FTPFile[ ] (although there are 8 files in the directory). Code snippet shown below... Thanks, -Riz. ftpClient.changeWorkingDirectory(OUTGOING_FOLDER); ftpClient.setFileType(FTP.BINARY_FILE_TYPE); FTPFile[] files = ftpClient.listFiles(); logger.debug("Number of files in dir: " + files.length); //this outputs the value 0 Tahir Akhtar wrote: > You can check if the [tomcat] user on linux box has correct file system > permissions. > > -----Original Message----- > From: Rizwan Merchant [mailto:rizwan.merchant@sysconet.ca] > Sent: Tuesday, June 20, 2006 9:11 AM > To: commons-user@jakarta.apache.org > Subject: FTPClient works on Windows, not on FC4 > > Hi, > I have an application that uses the FTPClient class to connect to a > server and download some files. This application is being developed on a > Windows box and it works fine from there. > > But when I port the application to a Fedora Core 4 env, it seems to not > work. FTPClient lets the application log in and move around in the > directory structure, but when the listFiles() command is invoked, the > length of the array is 0 (ie as if there are no files in the directory). > I am certain there are files in that directory (and it shows when > running the application on a Windows env). > > Could anyone tell me what the problem could be here?? > Thanks, > -Riz. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.1/369 - Release Date: 6/19/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.1/369 - Release Date: 6/19/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org