You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Frank Tornack <f-...@t-online.de> on 2023/03/03 21:59:46 UTC

Problems with ftp download

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi all

I am trying to build apache ant from source and unfortunately have a
problem.

- -fetch-netrexx-no-commons-net:
Getting: ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip
To: /root/.ant/tempcache/NetRexx.zip
Error getting ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip to /root/.ant/tempcache/NetRexx.zip

BUILD FAILED
/opt/ant-src/fetch.xml:405: sun.net.ftp.FtpLoginException: Invalid username/password
	at java.base/sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:341)
	at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:790)
	at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:699)
	at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:689)

Does anyone have an idea how I can solve this?

Thank you

PS: sorry if my mail will be send 2 times... my private mail server has
no PTR record.

- -- 
Frank Tornack <f-...@t-online.de>
Privat
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSKs5ZJ/d3p8HqrcSZVreqZ0wXqzQUCZAJt0gAKCRBVreqZ0wXq
zXpJAP4i53sGAt51hZ8iEKp+PcbIcmjnVp53RacY/dV6GG+IPAEAtCOqJl/Ml+/0
Zmv1kpn8bcYHZz+w+tIyKkDWeGshHQU=
=7zoK
-----END PGP SIGNATURE-----

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


Re: Problems with ftp download

Posted by Stefan Bodewig <bo...@apache.org>.
On 2023-03-03, Frank Tornack wrote:

> I am trying to build apache ant from source and unfortunately have a
> problem.

> -fetch-netrexx-no-commons-net:
> Getting: ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip
> To: /root/.ant/tempcache/NetRexx.zip
> Error getting ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip to /root/.ant/tempcache/NetRexx.zip

> BUILD FAILED
> /opt/ant-src/fetch.xml:405: sun.net.ftp.FtpLoginException: Invalid username/password
> 	at java.base/sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:341)
> 	at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:790)
> 	at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:699)
> 	at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:689)

> Does anyone have an idea how I can solve this?

When trying to access the server manually it tells me I need to use TLS
for the control channel, which unfortuantely is not supported by
java.net.URL. I found https://netrexx.org/downloads.nsp which provides
downloads via https, so I modified the fetch.xml setup in master with
https://github.com/apache/ant/commit/541a1d2448af3e95134f79a970a608403deab00a

I picked the really old 2.05 as this is claimed to be the latest IBM
release. Right now I lack the cylces to check whether Ant's NetRexx
support - which probably hasn't been touched in more than a decade - would
work with more recent releases.

Stefan