commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "blatt, lew" <Blatt_...@emc.com>
Subject [net] trying to get ant ftp task, on z/OS, to connect
Date Thu, 28 Jul 2005 17:48:22 GMT
apologies for the clutter.  i was advised my original email below did not
adhere to the standards of this listserv as it did not contain component
name in subject, and may have been missed by those who can help. so here it
is again.  thanks in advance, lew

> _____________________________________________ 
> From: 	blatt, lew  
> Sent:	Thursday, July 28, 2005 9:51 AM
> To:	'Jakarta Commons Users List'
> Subject:	RE: still trying to get ant, jakarta commons,  ftp task, on
> z/OS  to play (Upgrade to J1.4 does not solve problem)
> 
> another help plea for zOS (IBM mainframe) platform.  
> 
> i am trying to get the ant ftp task, on zOS, to ftp.  previous emails from
> helpful listserv members recommended i upgrade to ant 1.6.5, java 1.4.
> doing so i've "progressed" abit further.  i now see a hang when trying to
> initiate ftp client (and no longer see garbage characeters spit out on
> screen).  
> 
> to isolate the problem (between ant and commons-net) i wrote the java app,
> below.  this app stalls on zOS and eventually terminates with excpetion.
> on Windows the app connects successfully.  furthermore, there is no
> problem using the IBM ftp client interactively.  any clues appreciated.
> apologies (in advance) for the poor java.  all i can say is, "i'm learning
> :)".
> 
> import org.apache.commons.net.ftp.*;
> import java.io.IOException;
> import java.io.*;
> 
> public class ftpit {
> 	public static void main(String a[]) {
> 		ftpit f=new ftpit(); 
> 	}
> 	ftpit(){
> 	   FTPClient ftp=new FTPClient();
> 	   String server = new String("10.243.142.113");
> 	   try {
> 	   	ftp.connect(server) <ftp.connect(server)> ;  
> 	   	System.out.println("Connected to " + server + ".");
> 	    System.out.print(ftp.getReplyString());
> 	   } catch(IOException ioe) {System.out.println("exception");}
> 	}
> }

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


Mime
View raw message