ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Cannot get FTP to get/list files on RHEL3 machine
Date Tue, 09 Aug 2005 18:07:03 GMT
Copying the ant installation from another machine should be fine. Ant is platform independant
and self contained within $ANT_HOME, so this should work fine. Check to make sure you have
the dependant jars in $ANT_HOME/lib. See the dependency section of the manual to find out
what dependencies you need for the tasks you are using.

-Rob Anderson

> -----Original Message-----
> From: Calum Byrom [mailto:BYROMCA@uk.ibm.com]
> Sent: Tuesday, August 09, 2005 3:05 AM
> To: Ant Users List
> Subject: RE: Cannot get FTP to get/list files on RHEL3 machine
> 
> 
> 
> 
> 
> 
> Thanks for the response, Rob (sorry, been on holiday for the 
> last week).
> 
> Have uninstalled an existing version and this hasn't fixed 
> the problem.
> The install may be causing the problem, though, since I 
> didn't use rpm to
> install ANT - I just copied over an existing install that 
> worked on another
> machine.  I initially tried to install ant-1.6.2-3jpp.noarch.rpm (from
> http://www.jpackage.org/rpm.php?id=18 - using rpm -iv ant...) 
> but this had
> too many nested dependencies so gave up after a while and 
> just copied over
> the relevant files directly (this process worked fine on 
> another machine).
> 
> Is there an easy way to do a clean install with all the necessary
> dependencies?  NB, I also need to use commons-net-1.2.2.jar and
> jakarta-oro-2.0.7.jar to access the required FTP 
> functionality.  If you
> could provide me with any further detail, it would be greatly 
> appreciated.
> 
> Cheers,
> 
> Calum.
> 
> --------------------------------------------------------------
> -----------
> Dr Calum Byrom
> Sun Certified Java Programmer
> WebSphere ESB Test
> IBM Hursley
> MP211, Hursley Park, Winchester, SO21 2JN, UK
> Tel/Fax:  +44 1962 815483  Internal:  245483
> 
> 
>                                                               
>              
>              "Anderson, Rob                                   
>              
>              (Global Trade)"                                  
>              
>              <Rob.Anderson@nik                                
>           To 
>              e.com>                    "Ant Users List"       
>              
>                                        <user@ant.apache.org>  
>              
>              29/07/2005 20:50                                 
>           cc 
>                                                               
>              
>                                                               
>      Subject 
>              Please respond to         RE: Cannot get FTP to 
> get/list      
>              "Ant Users List"          files on RHEL3 machine 
>              
>                                                               
>              
>                                                               
>              
>                                                               
>              
>                                                               
>              
>                                                               
>              
>                                                               
>              
> 
> 
> 
> 
> I seem to recal some discussion about Ant on Red Hat. There may be a
> version of Ant installed as an RPM, that came with the 
> distro, which for
> some reason is conflicting with the Ant installation that you 
> think you are
> using. If you do find an Ant RPM installed, uninstall it and 
> you should be
> fine.
> 
> Search the list archives and you may find more info about Red 
> Hat and Ant.
> 
> -Rob A
> 
> > -----Original Message-----
> > From: Calum Byrom [mailto:BYROMCA@uk.ibm.com]
> > Sent: Friday, July 29, 2005 8:40 AM
> > To: user@ant.apache.org
> > Subject: Fw: Cannot get FTP to get/list files on RHEL3 machine
> >
> >
> >
> >
> >
> >
> > Hi,
> > I'm having problems getting my ANT build to transfer files
> > from a remote
> > system to my RHEL3 box.  This works fine on my WindowsXP and
> > SuSE9 machines
> > - using the following:
> >
> >       <target name="ftp">
> >             <ftp action="get" password="${password}"
> > server="${server}"
> > userid="${userID}" remotedir="${sourceDir}">
> >                   <fileset dir="${sandboxDir}">
> >                         <include name="**/${file}" />
> >                   </fileset>
> >             </ftp>
> >       </target>
> >
> > Running in verbose mode, gives the following output (on the
> > RH machine):
> >
> >       [ftp] Opening FTP connection to <remoteMachine>
> >       [ftp] connected
> >       [ftp] logging in to FTP server
> >       [ftp] login succeeded
> >       [ftp] changing the remote directory
> >       [ftp] getting files
> > Could not load a dependent class
> > (com/sun/media/jai/codec/FileSeekableStream) for type image
> > Could not load a dependent class (com/jcraft/jsch/UserInfo) for type
> > sshexec
> > Could not load a dependent class (com/jcraft/jsch/UserInfo)
> > for type scp
> > Could not load class
> > (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
> > type cvsversion
> > Could not load a dependent class (jdepend/xmlui/JDepend) for
> > type jdepend
> > Could not load a dependent class
> > (junit/framework/TestListener) for type
> > junit
> > fileset: Setup scanner in dir /root/build with patternSet{ includes:
> > [**/mantis.zip] excludes: [] }
> >       [ftp] 0 files retrieved
> >       [ftp] disconnecting
> >   [antcall] Exiting /root/build.xml.
> >
> > - and similarly running a 'list' request - with a '**'
> > wildcard to try and
> > pick up anything also results in '0 files listed'.  It seems that
> > everything works up to the point where the script is trying
> > to detect the
> > remote files (i.e. the login and change dirs) - it then just
> > fails to spot
> > the relevant files.  I've played around with the access
> > permissions here
> > and it doesn't seem to make a difference.  Additionally, the
> > same missing
> > dependencies show up in the other machine builds, but the ftp
> > still works,
> > so I don't think these are the source of the problem.  I also
> > copied over
> > all the ANT files between the different machines and they
> > still work fine
> > on XP and SLES9 - but not RHEL.
> >
> > This is driving me up the wall, so if anyone can provide any
> > help here, it
> > will be much appreciated.
> >
> > Thanks,
> >
> > Calum.
> >
> > PS, if it's any help, here's the output using the diagnostic option:
> >
> > ant -diagnostics
> > ------- Ant diagnostics report -------
> > Apache Ant version 1.6.2 compiled on July 16 2004
> >
> > -------------------------------------------
> >  Implementation Version (JDK1.2+ only)
> > -------------------------------------------
> > core tasks     : 1.6.2
> > optional tasks : 1.6.2
> >
> > -------------------------------------------
> >  ANT_HOME/lib jar listing
> > -------------------------------------------
> > ant.home: /usr/local/apache-ant-1.6.2
> > commons-net-1.2.2.jar (153280 bytes)
> > ant-jai.jar (21351 bytes)
> > ant-antlr.jar (5659 bytes)
> > ant-starteam.jar (35463 bytes)
> > ant-icontract.jar (9713 bytes)
> > ant-jdepend.jar (8152 bytes)
> > ant-apache-oro.jar (48015 bytes)
> > ant-trax.jar (68833 bytes)
> > ant-apache-regexp.jar (3706 bytes)
> > ant-jmf.jar (6596 bytes)
> > ant-jsch.jar (22604 bytes)
> > ant-apache-bsf.jar (12589 bytes)
> > ant-netrexx.jar (9990 bytes)
> > ant-swing.jar (6755 bytes)
> > xercesImpl.jar (1010675 bytes)
> > ant-apache-bcel.jar (8609 bytes)
> > ant-stylebook.jar (2320 bytes)
> > ant-javamail.jar (6753 bytes)
> > ant-junit.jar (73665 bytes)
> > ant-xalan1.jar (4457 bytes)
> > ant-commons-net.jar (35242 bytes)
> > ant-commons-logging.jar (3856 bytes)
> > ant-weblogic.jar (14355 bytes)
> > ant-apache-log4j.jar (3014 bytes)
> > ant.jar (999966 bytes)
> > xml-apis.jar (124724 bytes)
> > jakarta-oro-2.0.7.jar (65425 bytes)
> > ant-vaj.jar (48623 bytes)
> > ant-xslp.jar (2236 bytes)
> > ant-nodeps.jar (407573 bytes)
> > ant-launcher.jar (8673 bytes)
> > ant-apache-resolver.jar (4073 bytes)
> >
> > -------------------------------------------
> >  Tasks availability
> > -------------------------------------------
> > image : Missing dependency 
> com.sun.media.jai.codec.FileSeekableStream
> > sshexec : Missing dependency com.jcraft.jsch.UserInfo
> > scp : Missing dependency com.jcraft.jsch.UserInfo
> > cvsversion : Not Available
> > jdepend : Missing dependency jdepend.xmlui.JDepend
> > junit : Missing dependency junit.framework.TestListener
> >
> > -------------------------------------------
> >  org.apache.env.Which diagnostics
> > -------------------------------------------
> > Not available.
> > Download it at http://xml.apache.org/commons/
> >
> > -------------------------------------------
> >  XML Parser information
> > -------------------------------------------
> > XML Parser : org.apache.xerces.jaxp.SAXParserImpl
> > XML Parser Location: /root/tmp/java/jre/lib/xml.jar
> >
> > -------------------------------------------
> >  System properties
> > -------------------------------------------
> > java.assistive : ON
> > java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> > sun.boot.library.path : /root/tmp/java/bin/../jre/bin
> > java.vm.version : 1.4.2
> > ant.library.dir : /usr/local/apache-ant-1.6.2/lib
> > java.vm.vendor : IBM Corporation
> > java.vendor.url : http://www.ibm.com/
> > path.separator : :
> > java.vm.name : Classic VM
> > file.encoding.pkg : sun.io
> > user.country : GB
> > sun.os.patch.level : unknown
> > java.vm.specification.name : Java Virtual Machine Specification
> > user.dir : /root
> > java.runtime.version : 1.4.2
> > java.fullversion : J2RE 1.4.2 IBM build cxia32142sr1a-20050209 (JIT
> > enabled: jitc)
> > java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
> > java.endorsed.dirs : /root/tmp/java/bin/../jre/lib/endorsed
> > os.arch : x86
> > com.ibm.vm.bitmode : 32
> > java.io.tmpdir : /tmp
> > line.separator :
> >
> > java.vm.specification.vendor : Sun Microsystems Inc.
> > java.awt.fonts :
> > os.name : Linux
> > ant.home : /usr/local/apache-ant-1.6.2
> > sun.java2d.fontpath :
> > java.library.path :
> > /root/tmp/java/bin/../jre/bin:/root/tmp/java/jre/bin/classic
> > :/root/tmp/java/jre/bin:/usr/lib
> > java.specification.name : Java Platform API Specification
> > java.class.version : 48.0
> > ibm.system.encoding : UTF-8
> > invokedviajava :
> > java.util.prefs.PreferencesFactory :
> > java.util.prefs.FileSystemPreferencesFactory
> > os.version : 2.4.21-15.EL
> > user.home : /root
> > user.timezone : Europe/London
> > java.awt.printerjob : sun.print.PSPrinterJob
> > file.encoding : UTF-8
> > java.specification.version : 1.4
> > java.class.path : /usr/local/apache-ant-1.6.2
> > /lib/ant-launcher.jar:/usr/local/ap
> > ache-ant-1.6.2/lib/commons-net-1.2.2.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-jai
> > .jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-antlr.jar:/usr/local/apache-ant-1.6.2/l
> > ib/ant-starteam.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-icontract.jar:/usr/local
> > /apache-ant-1.6.2/lib/ant-jdepend.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-apache
> > -oro.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-trax.jar:/usr/local/apache-ant-1.6.
> > 2/lib/ant-apache-regexp.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-jmf.jar:/usr/loc
> > al/apache-ant-1.6.2/lib/ant-jsch.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-apache-
> > bsf.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-netrexx.jar:/usr/local/apache-ant-1.
> > 6.2/lib/ant-swing.jar:/usr/local/apache-ant-1.6.2
> > /lib/xercesImpl.jar:/usr/local/
> > apache-ant-1.6.2/lib/ant-apache-bcel.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-sty
> > lebook.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-javamail.jar:/usr/local/apache-an
> > t-1.6.2/lib/ant-junit.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-xalan1.jar:/usr/lo
> > cal/apache-ant-1.6.2/lib/ant-commons-net.jar:/usr/local/apache
> > -ant-1.6.2
> > /lib/ant
> > -commons-logging.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-weblogic.jar:/usr/local
> > 
> /apache-ant-1.6.2/lib/ant-apache-log4j.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant.j
> > ar:/usr/local/apache-ant-1.6.2/lib/xml-apis.jar:/usr/local/apa
> > che-ant-1.6.2
> > /lib/
> > jakarta-oro-2.0.7.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-vaj.jar:/usr/local/apa
> > che-ant-1.6.2/lib/ant-xslp.jar:/usr/local/apache-ant-1.6.2
> > /lib/ant-nodeps.jar:/u
> > sr/local/apache-ant-1.6.2/lib/ant-launcher.jar:/usr/local/apac
> > he-ant-1.6.2
> > /lib/a
> > nt-apache-resolver.jar:/root/tmp/java/bin/../lib/tools.jar
> > user.name : root
> > java.vm.specification.version : 1.0
> > java.home : /root/tmp/java/bin/../jre
> > sun.arch.data.model : 32
> > user.language : en
> > java.specification.vendor : Sun Microsystems Inc.
> > java.vm.info : J2RE 1.4.2 IBM build cxia32142sr1a-20050209
> > (JIT enabled:
> > jitc)
> > java.version : 1.4.2
> > java.ext.dirs : /root/tmp/java/bin/../jre/lib/ext
> > sun.boot.class.path :
> > /root/tmp/java/bin/../jre/lib/core.jar:/root/tmp/java/bin/
> > ../jre/lib/graphics.jar:/root/tmp/java/bin/../jre/lib/security
> > .jar:/root/tmp/jav
> > a/bin/../jre/lib/server.jar:/root/tmp/java/bin/../jre/lib/xml.
> > jar:/root/tmp/java
> > /bin/../jre/lib/charsets.jar:/root/tmp/java/bin/../jre/lib/ibm
> > orbapi.jar:/root/t
> > mp/java/bin/../jre/lib/ibmorb.jar:/root/tmp/java/bin/../jre/li
> > b/ibmjsseprovider.
> > jar:/root/tmp/java/bin/../jre/lib/ibmjssefips.jar:/root/tmp/ja
> > va/bin/../jre/lib/
> > ibmcertpathprovider.jar:/root/tmp/java/bin/../jre/lib/ibmjcefw
> > .jar:/root/tmp/jav
> > a/bin/../jre/lib/ibmjgssprovider.jar:/root/tmp/java/bin/../jre
> > /lib/ibmpkcs.jar:/
> > root/tmp/java/bin/../jre/lib/ibmjaaslm.jar
> > java.vendor : IBM Corporation
> > file.separator : /
> > java.vendor.url.bug :
> > java.compiler : jitc
> > sun.io.unicode.encoding : UnicodeLittle
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 
> 


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


Mime
View raw message