It's all about the answers!

Ask a question

Error message taskdef class com.ibm.team.build.ant.task.RequestBuildTask cannot be found


Neeraj Kumar (1112) | asked Aug 08 '17, 5:38 p.m.
retagged Aug 14 '17, 10:46 a.m. by Michael Afshar (7014)


Hi All,

I am getting below error. Tried few options but, didn't work. I am new to Java. So, Don't have much idea how to resolve it. Could you help?

Error Message
BUILD FAILED
/root/builds/zdttools/buildfile/test/build.xml:32: taskdef class com.ibm.team.build.ant.task.RequestBuildTask cannot be found
 using the classloader AntClassLoader[]


Build file

<project default="all">
        <taskdef name="requestTeamBuild" classname="com.ibm.team.build.ant.task.RequestBuildTask" />

</project>

Comand used to execute:

ant -f build.xml -lib /root/Downloads/jazz/buildsystem/buildtoolkit/

Path of toolkit
/root/Downloads/jazz/buildsystem/buildtoolkit

Content of Toolkit folder
com.ibm.team.filesystem.client.workitems_3.1.1100.v20161005_2018.jar                org.eclipse.emf.ecore.xmi.nl2_2.5.0.v201102251823.jar
com.ibm.team.filesystem.client.workitems.nl1_3.1.7.v201407291315.jar                org.eclipse.emf.ecore.xmi.nl2a_2.5.0.v201104190813.jar
com.ibm.team.filesystem.client.workitems.nl2_3.1.3.v201401212312.jar                org.eclipse.equinox.common_3.6.0.v20100503.jar
com.ibm.team.filesystem.client.workitems.nl2a_3.1.7.v201407291315.jar               org.eclipse.equinox.common.nl1_3.6.0.v201102251823.jar
com.ibm.team.filesystem.common_3.2.800.v20161019_1619.jar                           org.eclipse.equinox.common.nl2_3.6.0.v201102251823.jar
com.ibm.team.filesystem.common.nl1_3.2.5.v201610211704.jar                          org.eclipse.equinox.common.nl2a_3.6.0.v201104190813.jar
com.ibm.team.filesystem.common.nl2_3.2.4.v201610211701.jar                          org.eclipse.equinox.preferences_3.3.1.R36x_v20110302.jar
com.ibm.team.filesystem.common.nl2a_3.2.5.v201610211708.jar                         org.eclipse.equinox.preferences.nl1_3.3.0.v201102251823.jar
com.ibm.team.filesystem.common.workitems_3.1.1000.v20160919_1745.jar                org.eclipse.equinox.preferences.nl2_3.3.0.v201102251823.jar
com.ibm.team.filesystem.common.workitems.nl1_3.1.9.v201610211704.jar                org.eclipse.equinox.preferences.nl2a_3.3.0.v201104190813.jar
com.ibm.team.filesystem.common.workitems.nl2_3.1.7.v201610211701.jar                org.eclipse.equinox.registry_3.5.0.v20100503.jar
com.ibm.team.filesystem.common.workitems.nl2a_3.1.8.v201610211708.jar               org.eclipse.equinox.registry.nl1_3.5.0.v201102251823.jar
com.ibm.team.filesystem.rcp.core.jar                                                org.eclipse.equinox.registry.nl2_3.5.0.v201102251823.jar


2 answers



permanent link
Ralph Schoon (60.5k33643) | answered Aug 09 '17, 1:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This is not a Java issue, this is a configuration issue. Follw https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.build.doc%2Ftopics%2Fr_ant-tasks.html and

"copy the various taskdef entries in the BuildToolkitTaskDefs.xml file to your project's Ant script. You can also use your Ant script to import the taskdef file."
Also see https://jazz.net/library/article/1286


Comments
Neeraj Kumar commented Aug 09 '17, 10:53 p.m.

Now, I am getting the error as below

/root/builds/zdttools/buildfile/test/build.xml:32: The following error occurred while executing this line:
/root/Downloads/jazz/buildsystem/buildtoolkit/BuildToolkitTaskDefs.xml:24: taskdef class com.ibm.team.build.ant.task.ArtifactFilePublisherTask cannot be found
 using the classloader AntClassLoader[]

Total time: 0 seconds

I made the changes as per your recommendation as below
        <import file="/root/Downloads/jazz/buildsystem/buildtoolkit/BuildToolkitTaskDefs.xml"/>


Neeraj Kumar commented Aug 09 '17, 11:26 p.m.

I also started the JBE with IBM Java. But, i still get the same error


permanent link
Neeraj Kumar (1112) | answered Aug 09 '17, 8:21 a.m.

Now, I am getting the error as below

/root/builds/zdttools/buildfile/test/build.xml:32: The following error occurred while executing this line:
/root/Downloads/jazz/buildsystem/buildtoolkit/BuildToolkitTaskDefs.xml:24: taskdef class com.ibm.team.build.ant.task.ArtifactFilePublisherTask cannot be found
 using the classloader AntClassLoader[]

Total time: 0 seconds

I made the changes as per your recommendation as below
        <import file="/root/Downloads/jazz/buildsystem/buildtoolkit/BuildToolkitTaskDefs.xml"/>

Your answer


Register or to post your answer.