ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rhino" <rhi...@sympatico.ca>
Subject FTP problems
Date Sat, 17 Dec 2005 17:34:45 GMT
I need some help with an FTP problem in an Ant task. I am running Ant 1.6.5 
from Eclipse 3.1.1.

I have a task that is trying to FTP some files from my computer to a remote 
server. I am getting this error from the task:

upload-Sympatico:

[echo] Uploading to Sympatico....

[echo] Deleting all files (but not subdirectories) *beneath* the resume 
directory.

[ftp] Opening FTP connection to www3.sympatico.ca

[antcall] Exiting 
E:\eclipse\3.1.1\eclipse\workspace\Resume_JDK_1.5.0\xml\build.xml.

BUILD FAILED

E:\eclipse\3.1.1\eclipse\workspace\Resume_JDK_1.5.0\xml\build.xml:304: The 
following error occurred while executing this line:

java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient

at 
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)

at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

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.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)

at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Caused by: java.lang.NoClassDefFoundError: 
org/apache/commons/net/ftp/FTPClient

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)

at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at 
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

... 12 more

Caused by: java.lang.NoClassDefFoundError: 
org/apache/commons/net/ftp/FTPClient

at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:1943)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

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.executeSortedTargets(Project.java:1216)

... 16 more

--- Nested Exception ---

java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)

at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at 
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

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.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)

at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Caused by: java.lang.NoClassDefFoundError: 
org/apache/commons/net/ftp/FTPClient

at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:1943)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

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.executeSortedTargets(Project.java:1216)

... 16 more

--- Nested Exception ---

java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient

at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:1943)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

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.executeSortedTargets(Project.java:1216)

at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at 
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

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.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)

at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

I've checked and I have:
- org.apache.ant_1.6.5 in my 'plugins' directory within Eclipse
- commons-net-1.4.1.jar and jakarta-oro-2.0.8.jar in the 'lib' directory 
beneath the Ant plugin, i.e. in org.apache.ant_1.6.5\lib

That suggests that this is _not_ an installation issue but I don't know what 
else could be wrong. I've already verified that the server is accessible, 
that I gave the correct userid and password, and that the target directory 
exists.

Can anyone help me debug this problem?

Rhino



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16/12/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message