ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tharanga wijethilake" <>
Subject Running build file which runs toolspecifc ant tasks
Date Fri, 13 Oct 2006 12:02:53 GMT
Hi Every body,
I have written simple a build.xml file to run in Websphere Site Developer.It is as follows.

<project name="bundleRunner" default="submit_a_bundle" basedir="."> 

<target name="submit_a_bundle">

<smfbd.submitJarBundle bundlepath="/../HelloWorld" replace="true">

<bundleserver host="localhost" user="Admin" password="Admin" port="8080" webapp="/smf"/>




it gives me following Error. I know it clealy say what to do. But I have the jar files(smfbdTasks.jar,
bde.jar) in my class path. Is there any thing wrong in my build.xml file. Do I have to set
the classpath in the build.xml document. please suggest me somthing which I should do.

Thank you in advance.

Tharanga Wijethilake

C:\Documents and Settings\tharanga\My Documents\IBM\wssitedev51\wor
ner>java -cp "%classpath%;AntRunner.jar"


pace/AntRunner/build.xml:3: Could not create task or type of type:

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
 - You have misspelt 'smfbd.submitJarBundle'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
   and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and optional.jar is absent
   Fix: look for optional.jar in ANT_HOME/lib, download if needed
 - The task was not built into optional.jar as dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with the needed
   libraries, or download a release version from
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
   and needs to be declared using <taskdef>.

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 4 seconds
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message