ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atluri, Vamsi NYC" <VAtl...@citco.com>
Subject Could someone help me out ?
Date Fri, 01 Feb 2002 14:07:06 GMT
I have been having problems with the ANT ftp task and telnet tasks

when i do the following:

		<ftp server="myserver"
			port="2121"
	
remotedir="/export/home/vatluri/application/citco/cas/webapps/cas"
			userid="name"
			password="name"
			binary="yes"
		>
			<fileset dir="${buildCas}">
			<include name="**/xml.tar"/>
			</fileset>
                </ftp>

i recieve the following:

BUILD FAILED
C:\webadmin.xml:140: Could not create task or type of type: ftp.
Ant could not find the task or a class this
task relies upon.
Common solutions are to use taskdef to declare
your task, or, if this is an optional task,
to put the optional.jar and all required libraries of
this task in the lib directory of
your ant installation (ANT_HOME).
There is also the possibility that your build file
is written to work with a more recent version of ant
than the one you are using, in which case you have to
upgrade.
        at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownEleme
nt.java:228)
        at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:18
8)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
a:99)
        at org.apache.tools.ant.Task.perform(Task.java:222)
        at org.apache.tools.ant.Target.execute(Target.java:186)
        at org.apache.tools.ant.Target.performTasks(Target.java:204)
        at org.apache.tools.ant.Project.executeTarget(Project.java:921)
        at org.apache.tools.ant.Project.executeTargets(Project.java:875)
        at org.apache.tools.ant.Main.runBuild(Main.java:481)
        at org.apache.tools.ant.Main.start(Main.java:159)
        at org.apache.tools.ant.Main.main(Main.java:183)
----------------------------------------------------------------------------
------------------------------------------

I have downloaded the netcomponents.jar and added it to my classpath.

I recieve the following when executing build.xml :

Finding class com.oroinc.net.ftp

BUILD FAILED
C:\webadmin.xml:134: taskdef class com.oroinc.net.FTP cannot be found
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:185)

        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:122)
        at org.apache.tools.ant.Task.perform(Task.java:223)
        at org.apache.tools.ant.Target.execute(Target.java:186)
        at org.apache.tools.ant.Target.performTasks(Target.java:204)
        at org.apache.tools.ant.Project.executeTarget(Project.java:921)
        at org.apache.tools.ant.Project.executeTargets(Project.java:875)
        at org.apache.tools.ant.Main.runBuild(Main.java:481)
        at org.apache.tools.ant.Main.start(Main.java:159)
        at org.apache.tools.ant.Main.main(Main.java:183)
--- Nested Exception ---
java.lang.ClassNotFoundException: com.oroinc.net.FTP
        at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
der.java:971)
        at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:944
)
        at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:841
)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:179)

        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:122)
        at org.apache.tools.ant.Task.perform(Task.java:223)
        at org.apache.tools.ant.Target.execute(Target.java:186)
        at org.apache.tools.ant.Target.performTasks(Target.java:204)
        at org.apache.tools.ant.Project.executeTarget(Project.java:921)
        at org.apache.tools.ant.Project.executeTargets(Project.java:875)
        at org.apache.tools.ant.Main.runBuild(Main.java:481)
        at org.apache.tools.ant.Main.start(Main.java:159)
        at org.apache.tools.ant.Main.main(Main.java:183)

Please Advise

Thanks


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


Mime
View raw message