You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sagar Malisetti <sm...@hotmail.com> on 2003/05/20 19:19:04 UTC
FTP task with ant 1.5.3
Hi,
Below is the error I am getting, when I try to upload a file to ftp server.
I would greatly appreciate, If any one can let me know, if there is anything
else to be done.
Thanks
- Malisetti
C:\buildfiles\Test Drive>ant -v
Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.4 in: C:\Sun\AppServer7\jdk\jre
Detected OS: Windows_NT
parsing buildfile build.xml with URI = file:C:/buildfiles/Test
Drive/build.xml
Project base dir set to: C:\buildfiles\Test Drive
Build sequence for target `testftp' is [testftp]
Complete build sequence is [testftp]
testftp:
[ftp] Opening FTP connection to vienna.putnaminv.com
[ftp] connected
[ftp] logging in to FTP server
[ftp] login succeeded
[ftp] sending files
[ftp] transferring C:\buildfiles\Test Drive\upload\NetComponents.jar
[ftp] disconnecting
BUILD FAILED
file:C:/buildfiles/Test Drive/build.xml:10: error during FTP transfer:
java.io
OException: Host attempting data connection 172.28.129.133 is not same as
serv
172.28.129.51
at
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:101
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
RE: FTP task with ant 1.5.3
Posted by Bin Chen <bi...@bea.com>.
Do you have multiple IP addresses on that machine? If you do, you can try to
use IP address instead of the machine name for the FTP task.
-----Original Message-----
From: Sagar Malisetti [mailto:smalisetti@hotmail.com]
Sent: Tuesday, May 20, 2003 10:19 AM
To: user@ant.apache.org
Subject: FTP task with ant 1.5.3
Hi,
Below is the error I am getting, when I try to upload a file to ftp server.
I would greatly appreciate, If any one can let me know, if there is anything
else to be done.
Thanks
- Malisetti
C:\buildfiles\Test Drive>ant -v
Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.4 in: C:\Sun\AppServer7\jdk\jre
Detected OS: Windows_NT
parsing buildfile build.xml with URI = file:C:/buildfiles/Test
Drive/build.xml
Project base dir set to: C:\buildfiles\Test Drive
Build sequence for target `testftp' is [testftp]
Complete build sequence is [testftp]
testftp:
[ftp] Opening FTP connection to vienna.putnaminv.com
[ftp] connected
[ftp] logging in to FTP server
[ftp] login succeeded
[ftp] sending files
[ftp] transferring C:\buildfiles\Test Drive\upload\NetComponents.jar
[ftp] disconnecting
BUILD FAILED
file:C:/buildfiles/Test Drive/build.xml:10: error during FTP transfer:
java.io
OException: Host attempting data connection 172.28.129.133 is not same as
serv
172.28.129.51
at
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:101
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org