It's all about the answers!

Ask a question

unable to build with RC3 jazz client


Kartik Kanakasabesan (20112) | asked Mar 08 '07, 6:10 p.m.
JAZZ DEVELOPER
Hi folks,
I have a local server installed and I am following the Jazz
tutorial. After defining my build definition, I am getting the following
error on just a simple Hello World program.
---------------------------
Buildfile: D:\Temp\Prelude Team build\build.xml

BUILD FAILED
D:\Temp\Prelude Team build\build.xml:233: taskdef class
com.ibm.team.build.ant.task.ArtifactFilePublisherTask cannot be found

Total time: 0 seconds
---------------------------

Appreciate any insights on this matter

Regards,
Kartik

10 answers



permanent link
Martha (Ruby) Andrews (3.0k44351) | answered Mar 08 '07, 8:47 p.m.
JAZZ DEVELOPER
Hello,

Did you download and unzip the Jazz-Buildsystem-0.5RC3.zip, in addition
to the client and server zips?

Martha
Kartik Kanakasabesan wrote:

Hi folks,
I have a local server installed and I am following the Jazz
tutorial. After defining my build definition, I am getting the following
error on just a simple Hello World program.
---------------------------
Buildfile: D:\Temp\Prelude Team build\build.xml

BUILD FAILED
D:\Temp\Prelude Team build\build.xml:233: taskdef class
com.ibm.team.build.ant.task.ArtifactFilePublisherTask cannot be found

Total time: 0 seconds
---------------------------

Appreciate any insights on this matter

Regards,
Kartik

permanent link
Kartik Kanakasabesan (20112) | answered Mar 08 '07, 11:56 p.m.
JAZZ DEVELOPER
Martha Andrews wrote:
Hello,

Did you download and unzip the Jazz-Buildsystem-0.5RC3.zip, in addition
to the client and server zips?

Martha
Kartik Kanakasabesan wrote:

Hi folks,
I have a local server installed and I am following the Jazz
tutorial. After defining my build definition, I am getting the
following error on just a simple Hello World program.
---------------------------
Buildfile: D:\Temp\Prelude Team build\build.xml

BUILD FAILED
D:\Temp\Prelude Team build\build.xml:233: taskdef class
com.ibm.team.build.ant.task.ArtifactFilePublisherTask cannot be found

Total time: 0 seconds
---------------------------

Appreciate any insights on this matter

Regards,
Kartik


Hi Martha,
I did download the RC3 Buildsystem bits, any idea what
could be wrong ?
Regards,
Kartik

permanent link
Stefan Stern (4062128) | answered Mar 09 '07, 2:00 p.m.
Hi

I am getting the following error on just a simple Hello World program.

Just to be sure: you're getting this message on the console output of
your Eclipse where the build engine is running? Or did you start the ant
manually? Or is the build engine running as standalone?
In case you are running the build engine inside Eclipse, and you're
getting this message on the console output, please check the following:
Go in menu "Run"->"Run...". There you should see the build engine
runtime configuration. Open it and search in the options whether you
choose a JDK5. If you selected a JDK1.4 or JDK6, some Jazz classes won't
load. This could cause the error above, that some ant-tasks can't be
loaded as the dependencies can't be satisfied.

Regards,
Stefan

permanent link
Kartik Kanakasabesan (20112) | answered Mar 09 '07, 2:30 p.m.
JAZZ DEVELOPER
Stefan Stern wrote:
Hi

I am getting the following error on just a simple Hello World program.

Just to be sure: you're getting this message on the console output of
your Eclipse where the build engine is running? Or did you start the ant
manually? Or is the build engine running as standalone?
In case you are running the build engine inside Eclipse, and you're
getting this message on the console output, please check the following:
Go in menu "Run"->"Run...". There you should see the build engine
runtime configuration. Open it and search in the options whether you
choose a JDK5. If you selected a JDK1.4 or JDK6, some Jazz classes won't
load. This could cause the error above, that some ant-tasks can't be
loaded as the dependencies can't be satisfied.

Regards,
Stefan

Hi Stefan,
JDK 6 makes sense, since I upgraded my jdk from 1.5_10
to 1.6 before upgrading the Jazz RC3 client.
Looks like I have to downgrade my JDK and check it out.
Regards,
Kartik

permanent link
Kartik Kanakasabesan (20112) | answered Mar 09 '07, 3:02 p.m.
JAZZ DEVELOPER
Kartik Kanakasabesan wrote:
Stefan Stern wrote:
Hi

I am getting the following error on just a simple Hello World program.

Just to be sure: you're getting this message on the console output of
your Eclipse where the build engine is running? Or did you start the
ant manually? Or is the build engine running as standalone?
In case you are running the build engine inside Eclipse, and you're
getting this message on the console output, please check the following:
Go in menu "Run"->"Run...". There you should see the build engine
runtime configuration. Open it and search in the options whether you
choose a JDK5. If you selected a JDK1.4 or JDK6, some Jazz classes
won't load. This could cause the error above, that some ant-tasks
can't be loaded as the dependencies can't be satisfied.

Regards,
Stefan

Hi Stefan,
JDK 6 makes sense, since I upgraded my jdk from 1.5_10
to 1.6 before upgrading the Jazz RC3 client.
Looks like I have to downgrade my JDK and check it out.
Regards,
Kartik


Hi Stefan
I downgraded my JDK to 1.5.0_11 I am still getting the
same error do I need to downgrade further ?
Regards,
Kartik

permanent link
Ryan Manwiller (1.3k1) | answered Mar 09 '07, 6:48 p.m.
JAZZ DEVELOPER
Hi Kartik,

When creating a build definition using the ant template, you should have
gotten an antArgs property in the definition that specifies a -lib pointing
to the build toolkit directory. This is how the Jazz ant tasks get on the
classpath.

For example, on my machine, I've unzipped the toolkit at C:\test, so my
antArgs property looks like this:

-lib C:\test\jazz\buildsystem\buildtoolkit

Can you confirm the property is pointing to a location that still contains
the toolkit jar (com.ibm.team.build.toolkit_*.jar) ? This is the jar
containing the ArtifactFilePublisherTask.

In addition, you can add -debug to the antArgs property, like this:

-debug -lib C:\test\jazz\buildsystem\buildtoolkit

This will cause ant to print a lot more info in the full build log.

If all else fails, I'd suggest starting again with a new build definition.
The first time through the wizard, just accept all the defaults, and see if
you get a green build that way. Then, start modifying the build to suit your
needs.


Ryan

permanent link
Kartik Kanakasabesan (20112) | answered Mar 12 '07, 10:02 a.m.
JAZZ DEVELOPER
Ryan Manwiller wrote:
Hi Kartik,

When creating a build definition using the ant template, you should have
gotten an antArgs property in the definition that specifies a -lib pointing
to the build toolkit directory. This is how the Jazz ant tasks get on the
classpath.

For example, on my machine, I've unzipped the toolkit at C:\test, so my
antArgs property looks like this:

-lib C:\test\jazz\buildsystem\buildtoolkit

Can you confirm the property is pointing to a location that still contains
the toolkit jar (com.ibm.team.build.toolkit_*.jar) ? This is the jar
containing the ArtifactFilePublisherTask.

In addition, you can add -debug to the antArgs property, like this:

-debug -lib C:\test\jazz\buildsystem\buildtoolkit

This will cause ant to print a lot more info in the full build log.

If all else fails, I'd suggest starting again with a new build definition.
The first time through the wizard, just accept all the defaults, and see if
you get a green build that way. Then, start modifying the build to suit your
needs.


Ryan




Hi Ryan,
this is where what I have in the buildsystem directory:
----------------------------
D:\Program Files\ibm\jazz\buildsystem\buildtoolkit>dir *toolkit*.jar
Volume in drive D has no label.
Volume Serial Number is F041-45C9

Directory of D:\Program Files\ibm\jazz\buildsystem\buildtoolkit

03/06/2007 05:08 PM 15,569
com.ibm.team.analysis.toolkit_0.5.0.I2007
0306-1525.jar
03/06/2007 05:08 PM 118,403
com.ibm.team.build.toolkit_0.5.0.I2007030
6-1525.jar
2 File(s) 133,972 bytes
0 Dir(s) 47,125,622,784 bytes free
----------------------------------------------
In my build definition this is the info I have : (this was generated by
the wizard)
-----------------------------------------------
antArgs == lib D:\Program Files\ibm\jazz\buildsystem\buildtoolkit
antHome == D:\Program
files\ibm\jazz\client\eclipse\plugins\org.apache.ant_1.6.5
buildFile == D:\Temp\Prelude Team build\build.xml
buildRequestHandler == ant
buildWorkingDir == D:\Temp\Prelude Team build
javaHome == D:\Program Files\Java\jdk1.5.0_11
javaVMArgs ==
propertiesFile == D:\Temp\Prelude Team build\build.properties
repositoryAddress == http://localhost:8080/jazz/
workspaceName ==
------------------------------------

I have tried recreating the build definition file again and it still
does not work.
Regards,
Kartik

permanent link
Ryan Manwiller (1.3k1) | answered Mar 12 '07, 12:00 p.m.
JAZZ DEVELOPER
It appears your buildsystem/toolkit folder is missing most of its content.
There should be about 40 jar files in the toolkit folder. I would try
unzipping Jazz-BuildSystem-0.5RC3.zip again and make sure you get all the
content.

permanent link
Kartik Kanakasabesan (20112) | answered Mar 12 '07, 12:14 p.m.
JAZZ DEVELOPER
Ryan Manwiller wrote:
It appears your buildsystem/toolkit folder is missing most of its content.
There should be about 40 jar files in the toolkit folder. I would try
unzipping Jazz-BuildSystem-0.5RC3.zip again and make sure you get all the
content.

I have reunzipped the buildkit

-------
D:\Program Files\ibm\jazz\buildsystem\buildtoolkit>dir
Volume in drive D has no label.
Volume Serial Number is F041-45C9

Directory of D:\Program Files\ibm\jazz\buildsystem\buildtoolkit

03/12/2007 12:09 PM <DIR> .
03/12/2007 12:09 PM <DIR> ..
03/06/2007 04:08 PM 68,391
com.ibm.team.analysis.client.report_0.5.
..I20070306-1525.jar
03/06/2007 04:08 PM 17,863
com.ibm.team.analysis.client_0.5.0.I2007
306-1525.jar
03/06/2007 04:08 PM 29,192
com.ibm.team.analysis.common_0.5.0.I2007
306-1525.jar
03/06/2007 04:08 PM 15,569
com.ibm.team.analysis.toolkit_0.5.0.I200
0306-1525.jar
03/06/2007 04:08 PM 90,593
com.ibm.team.build.client_0.5.0.I2007030
-1525.jar
03/06/2007 04:08 PM 307,119
com.ibm.team.build.common_0.5.0.I2007030
-1525.jar
03/06/2007 04:08 PM 118,403
com.ibm.team.build.toolkit_0.5.0.I200703
6-1525.jar
03/06/2007 04:08 PM 385,647
com.ibm.team.filesystem.client_0.5.0.I20
70306-1525.jar
03/06/2007 04:08 PM 87,969
com.ibm.team.filesystem.common_0.5.0.I20
70306-1525.jar
03/06/2007 04:08 PM 31,421
com.ibm.team.foundation.common_0.5.0.I20
70306-1525.jar
03/06/2007 04:08 PM 8,169
com.ibm.team.links.client_0.5.0.I2007030
-1525.jar
03/06/2007 04:08 PM 74,764
com.ibm.team.links.common_0.5.0.I2007030
-1525.jar
03/06/2007 04:08 PM 193,177
com.ibm.team.process.client_0.5.0.I20070
06-1525.jar
03/06/2007 04:08 PM 365,454
com.ibm.team.process.common_0.5.0.I20070
06-1525.jar
03/06/2007 04:08 PM 124,306
com.ibm.team.repository.client_0.5.0.I20
70306-1525.jar
03/06/2007 04:08 PM 530,948
com.ibm.team.repository.common.model_0.5
0.I20070306-1525.jar
03/06/2007 04:08 PM 396,769
com.ibm.team.repository.common.transport
0.5.0.I20070306-1525.jar
03/06/2007 04:08 PM 138,718
com.ibm.team.repository.common_0.5.0.I20
70306-1525.jar
03/06/2007 04:08 PM 149,794
com.ibm.team.scm.client_0.5.0.I20070306-
525.jar
03/06/2007 04:08 PM 319,706
com.ibm.team.scm.common_0.5.0.I20070306-
525.jar
03/06/2007 04:08 PM 138,539
com.ibm.team.workitem.client_0.5.0.I2007
306-1525.jar
03/06/2007 04:08 PM 590,011
com.ibm.team.workitem.common_0.5.0.I2007
306-1525.jar
03/06/2007 04:08 PM 38,095 commons-codec-1.3.jar
03/06/2007 04:08 PM 279,383 commons-httpclient-3.0.jar
03/06/2007 04:08 PM 38,015 commons-logging.jar
03/08/2007 01:17 PM <DIR> examples
03/06/2007 04:08 PM 358,085 log4j-1.2.12.jar
03/06/2007 04:08 PM 81,432
org.eclipse.core.jobs_3.3.0.v20070202.ja

03/06/2007 04:08 PM 73,144
org.eclipse.core.runtime_3.3.100.v200612
4.jar
03/06/2007 04:08 PM 17,576
org.eclipse.emf.ant_2.2.0.v200609210005.
ar
03/06/2007 04:08 PM 770,971
org.eclipse.emf.codegen.ecore_2.2.1.v200
09210005.jar
03/06/2007 04:08 PM 5,808
org.eclipse.emf.commonj.sdo_2.1.0.v20060
210005.jar
03/06/2007 04:08 PM 156,387
org.eclipse.emf.common_2.2.1.v2006092100
5.jar
03/06/2007 04:08 PM 69,770
org.eclipse.emf.ecore.change_2.2.0.v2006
9210005.jar
03/06/2007 04:08 PM 167,522
org.eclipse.emf.ecore.sdo_2.2.0.v2006092
0005.jar
03/06/2007 04:08 PM 170,049
org.eclipse.emf.ecore.xmi_2.2.1.v2006092
0005.jar
03/06/2007 04:08 PM 750,036
org.eclipse.emf.ecore_2.2.1.v20060921000
..jar
03/06/2007 04:08 PM 91,913
org.eclipse.equinox.common_3.3.0.v200701
2.jar
03/06/2007 04:08 PM 102,990
org.eclipse.equinox.preferences_3.2.100.
20060918.jar
03/06/2007 04:08 PM 159,579
org.eclipse.equinox.registry_3.2.100.v20
61204.jar
03/06/2007 04:08 PM 919,896 org.eclipse.osgi_3.3.0.v20070208.jar
03/12/2007 12:09 PM <DIR> task-javadoc
40 File(s) 8,433,173 bytes
-----------------------------

the 40 files are all there.
Regards,
Kartik

permanent link
Ryan Manwiller (1.3k1) | answered Mar 12 '07, 12:52 p.m.
JAZZ DEVELOPER
The problem Kartik was running into was that there were spaces in the path
to the buildtoolkit. Once we added quotes around the path in the antArgs
property, the build worked.

For example, in the antArgs property:
-lib "C:\Program Files\jazz\buildsystem\buildtoolkit"

I've filed a work item to have the build definition wizard add the quotes if
we detect spaces in the path.

https://jazz.net/jazz/web/projects/Jazz%20Project#perspective=Work%20Items&action=viewWorkItem&id=19510

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.