ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calum Byrom <BYRO...@uk.ibm.com>
Subject Cannot get FTP to get/list files on RHEL3 machine
Date Fri, 29 Jul 2005 15:25:49 GMT




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/apache-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/apache-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/ibmorbapi.jar:/root/t
mp/java/bin/../jre/lib/ibmorb.jar:/root/tmp/java/bin/../jre/lib/ibmjsseprovider.
jar:/root/tmp/java/bin/../jre/lib/ibmjssefips.jar:/root/tmp/java/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


Mime
View raw message