Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39940 invoked from network); 27 Sep 2007 07:06:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 07:06:05 -0000 Received: (qmail 4758 invoked by uid 500); 27 Sep 2007 07:05:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4591 invoked by uid 500); 27 Sep 2007 07:05:51 -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 4580 invoked by uid 99); 27 Sep 2007 07:05:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 00:05:51 -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: domain of peter.kitt.reilly@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 07:05:52 +0000 Received: by py-out-1112.google.com with SMTP id a73so5147334pye for ; Thu, 27 Sep 2007 00:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uyXRLufS1y3kiTyL2kHG4I6PbFBHHWsIwvXPvq2GVnk=; b=W7JUQeBZC3/bGDkZNA9n2WbyuvM7sab+GrLROyfpet/ojt7OiVhPvsa86iZ79VEadUi1oonQixmuOucNTV6NOrkN9wse8CGh8FPA53rAcMgieQJKxbuEMeSfhTXFIuBsg/F0JtaVRgw+Wy7UHGH2i3NnIJC1U+eveNLa61NnHMk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=etiu2/iXFtvi2iBZ3bRZ68mA2GJDaXeB6tCm3PPGkXCkzH7iRCLlBw0DoQEqpIuAWfHZxKJon9vtd86WpkH4pjK6UFDH+v1+IKuGPdKCrc6hZtSSHjLrHK43s8AOH+Cn2VA3nWlDDSEtWy9+kl9Yf0oCnYuu9DmllGC5u8F+66A= Received: by 10.35.12.10 with SMTP id p10mr2087294pyi.1190876730349; Thu, 27 Sep 2007 00:05:30 -0700 (PDT) Received: by 10.35.97.14 with HTTP; Thu, 27 Sep 2007 00:05:30 -0700 (PDT) Message-ID: Date: Thu, 27 Sep 2007 08:05:30 +0100 From: "Peter Reilly" To: "Ant Users List" Subject: Re: FTP Task doesn't work with ANT with all JARs included In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org also, you are using part of the ant 1.4.1 distribution. (jakarta-ant-1.4.1-optional.jar) Mixing parts of different ant versions will not work. Peter On 9/27/07, Jan.Materne@rzf.fin-nrw.de wrote: > 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 relea= sed version, which is here 1.7.0. > > If you cant update, have a look at that section in your offline manual. C= hoose the exact version of the libraries. There were problems with incompat= ible versions... > > > But btw - nice post. Contains a lot of needed information ;) > > > Jan > > >-----Urspr=FCngliche Nachricht----- > >Von: Z [mailto:mpc8250@gmail.com] > >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 - > >name - ANT_HOME Value - C:\apache-ant-1.6.2 > >name - JAVA_HOME Value - C:\Program Files\Java\jdk1.5.0_12 > >name - PATH Value - C:\Program > >Files\Java\jdk1.5.0_12\lib;%ANT_HOME%\bin > > > > > >I've downloaded and dropped the following jar files and copied them > >into C:\apache-ant-1.6.2\lib folder. > >I didn't do any command line compilation. I read elsewhere that I > >don't have to do that. > > > > > >jakarta-ant-1.4.1-optional.jar > >common-net-1.4.1.jar > >jakarta-oro-2.0.8.jar > >NetComponents.jar > > > > > >I've followed all internet instructions to solve this problem, yet it > >still doesn't work. > >What do I do wrong ? I need step by step at this point from the gurus > >here as I don't have much time > >to debug. > >Any help is appreciated. > > > > > > > >$ 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 > >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: > >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 > >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 > >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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org