Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 92889 invoked from network); 27 Sep 2007 05:08:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 05:08:29 -0000 Received: (qmail 75868 invoked by uid 500); 27 Sep 2007 05:08:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75835 invoked by uid 500); 27 Sep 2007 05:08:16 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75824 invoked by uid 99); 27 Sep 2007 05:08:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 22:08:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 05:08:16 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id l8R57qMM007060 for ; Thu, 27 Sep 2007 07:07:52 +0200 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Thu, 27 Sep 2007 07:07:54 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: FTP Task doesn't work with ANT with all JARs included Date: Thu, 27 Sep 2007 07:07:51 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FTP Task doesn't work with ANT with all JARs included Thread-Index: AcgAnha4N83G3WYfQs2haMzcTK3FWgABygxQAAeTmCA= From: To: X-OriginalArrivalTime: 27 Sep 2007 05:07:54.0093 (UTC) FILETIME=[5C39A1D0:01C800C4] X-Virus-Checked: Checked by ClamAV on apache.org As in every software project ... could you update to a newer version? Ant 1.6.2 is very old (3years), 1.7.0 is the latest (Dez.2006). The required libraries listed in the online manual are for the last = released version, which is here 1.7.0. If you cant update, have a look at that section in your offline manual. = Choose the exact version of the libraries. There were problems with = incompatible versions... But btw - nice post. Contains a lot of needed information ;) Jan >-----Urspr=FCngliche Nachricht----- >Von: Z [mailto:mpc8250@gmail.com]=20 >Gesendet: Donnerstag, 27. September 2007 03:33 >An: user@ant.apache.org >Betreff: FTP Task doesn't work with ANT with all JARs included > >Hi > >Platform - windows XP >Env Variables -=20 >name - ANT_HOME Value - C:\apache-ant-1.6.2=20 >name - JAVA_HOME Value - C:\Program Files\Java\jdk1.5.0_12=20 >name - PATH Value - C:\Program >Files\Java\jdk1.5.0_12\lib;%ANT_HOME%\bin=20 > > >I've downloaded and dropped the following jar files and copied them=20 >into C:\apache-ant-1.6.2\lib folder.=20 >I didn't do any command line compilation. I read elsewhere that I=20 >don't have to do that.=20 > > >jakarta-ant-1.4.1-optional.jar=20 >common-net-1.4.1.jar=20 >jakarta-oro-2.0.8.jar=20 >NetComponents.jar=20 > > >I've followed all internet instructions to solve this problem, yet it=20 >still doesn't work.=20 >What do I do wrong ? I need step by step at this point from the gurus=20 >here as I don't have much time=20 >to debug.=20 >Any help is appreciated.=20 > > > >$ ant -debug >Apache Ant version 1.6.2 compiled on July 16 2004 >Buildfile: build.xml >Adding reference: ant.PropertyHelper >Detected Java version: 1.5 in: c:\Program Files\Java\jdk1.5.0_12\jre >Detected OS: Windows XP >Adding reference: ant.ComponentHelper >Setting ro project property: ant.version -> Apache Ant version 1.6.2 >compiled on > July 16 2004 >Setting ro project property: ant.file -> c:\Documents and >Settings\ABC\Desktop\imdm5\build.xml >Adding reference: ant.projectHelper >Adding reference: ant.parsing.context >Adding reference: ant.targets >parsing buildfile C:\Documents and=20 >Settings\ABC\Desktop\imdm5\build.xml with >URI =3D >file:///C:/Documents%20and%20Settings/ABC/Desktop/imdm5/build.xml > >Setting ro project property: ant.project.name -> Example Application >Build >Adding reference: Example Application Build >Setting ro project property: ant.file.Example Application Build -> >C:\Documents >and >Settings\ABC\Desktop\imdm5\build.xml >Project base dir set to: C:\Documents and >Settings\ABC\Desktop\imdm5 > +Target: > +Target: testftp >Build sequence for target `testftp' is [testftp] >Complete build sequence is [testftp, ] > >testftp: >Setting project property: linpac1 -> 192.168.100.191 >Setting project property: linpac2 -> 192.168.100.192 >Setting project property: ap1 -> sunmdm6 >Setting project property: ap2 -> sunmdm10 >Setting project property: db1 -> linpac4 >Setting project property: username -> su-mdm >Setting project property: password -> find . >Setting project property: username_db -> su-rds >Setting project property: password_db -> doongo411 >Setting project property: oracle_username -> oracle >Setting project property: oracle_password -> innopath >Could not load a dependent class (org/apache/tools/ant/util/Retryable) >for type >ftp > >BUILD FAILED >C:\Documents and Settings\ABC\Desktop\imdm5\build.xml:20:=20 >Could not create >task or type of type: ftp. > >Ant could not find the task or a class this task relies upon. > >This is common and has a number of causes; the usual >solutions are to read the manual pages then download and >install needed JAR files, or fix the build file: > - You have misspelt 'ftp'. > Fix: check your spelling. > - The task needs an external JAR file to execute > and this is not found at the right place in the classpath. > Fix: check the documentation for dependencies. > Fix: declare the task. > - The task is an Ant optional task and the JAR file and/or libraries > implementing the functionality were not found at the time you > yourself built your installation of Ant from the Ant sources. > Fix: Look in the ANT_HOME/lib for the 'ant-' JAR=20 >corresponding to the > task and make sure it contains more than merely a >META-INF/MANIFEST.MF. > If all it contains is the manifest, then rebuild Ant with the >needed > libraries present in ${ant.home}/lib/optional/ , or alternatively, > download a pre-built release version from apache.org > - The build file was written for a later version of Ant > Fix: upgrade to at least the latest release version of Ant > - The task is not an Ant core or optional task > and needs to be declared using . > - You are attempting to use a task defined using > or but have spelt wrong or not > defined it at the point of use > >Remember that for JAR files to be visible to Ant tasks implemented >in ANT_HOME/lib, the files must be in the same directory or on the >classpath > >Please neither file bug reports on this problem, nor email the >Ant mailing lists, until all of these causes have been explored, >as this is not an Ant bug. > at >org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownEleme >nt.java:488) > at >org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:39 >1) > at >org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav >a:158) > at org.apache.tools.ant.Task.perform(Task.java:363) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at=20 >org.apache.tools.ant.Project.executeTarget(Project.java:1214) > at >org.apache.tools.ant.Project.executeTargets(Project.java:1062) > at org.apache.tools.ant.Main.runBuild(Main.java:673) > at org.apache.tools.ant.Main.startAnt(Main.java:188) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) > >Total time: 0 seconds > >$ > >Build.xml file >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >basedir=3D"."> > > > > > > > > > > > > > > server=3D"sunmdm6" > remotedir=3D"." > userid=3D"${username}" > password=3D"${password}" > skipFailedTransfers=3D"true"> > > > > > > > > > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org