E
dit
A
ttach
P
rintable
r12 - 2015-05-27 - 16:09:40 - Main.sbagot
You are here:
TWiki
>
Deployment Web
>
DeploymentTroubleshooting
>
IntegrationsTroubleshooting
>
IntegrationsTroubleshootingRTCandIntegratedDevelopmentEnvironments
>
WhyDoISeeDifferentBuildErrorsInRationalApplicationDeveloperAndInTheRTCBuildResults
<div id="header-title" style="padding: 10px 15px; border-width:1px; border-style:solid; border-color:#FFD28C; background-image: url(<nop>https://jazz.net/wiki/pub/Deployment/WebPreferences/TLASE.jpg); background-size: cover; font-size:120%"> ---+!! <img src="" alt="" width="50" height="50" align="right"/> Why do I see different build errors in Rational Application Developer and Rational Team Concert build results? %DKGRAY% Authors: IntegrationsTroubleshootingTeam <br> Build basis: Rational Team Concert 4.x and later, Rational Application Developer 8.5.x, Rational Software Architect For !WebSphere 8.5.x %ENDCOLOR%</div></sticky> <!-- Page contents top of page on right hand side in box --> <sticky><div style="float:right; border-width:1px; border-style:solid; border-color:#DFDFDF; background-color:#F6F6F6; margin:0 0 15px 15px; padding: 0 15px 0 15px;"> %TOC{title="Page contents"}% </div></sticky> <sticky><div style="margin:15px;"></sticky> This page describes the reasons you can get a successful build result in Rational Team Concert when the corresponding Rational Application Developer build failed, or why a workspace that builds correctly in Rational Application Developer might fail using Ant builds run by the Jazz Build Engine. ---++ Initial assessment ---+++ Symptoms * Your Rational Application Developer workspace builds successfully in interactive mode. When you try to build it using an Ant script and an ANT build in Jazz Build Engine, you get errors like this:<verbatim> [javac] C:\Program Files (x86)\IBM\TeamConcert\buildsystem\buildengine\eclipse\fetched\ClassName.java:xx: cannot find symbol [javac] symbol : method required() [javac] location: @interface javax.xml.bind.annotation.XmlElementRef [javac] @XmlElementRef(name = "name", type = JAXBElement.class, required= false) </verbatim> * You run a Rational Application Developer build by invoking a command line build with Jazz Build Engine. The Rational Application Developer build has errors, but the Jazz Build Engine shows a successful build result. ---++ Data gathering and subsequent analysis steps * What type of build definition do you run: command line, Ant,...? * What type of Ant tasks do you use? In particular, do you build using the following task (from the Ant distribution) <verbatim><javac></verbatim> or the following task (from Rational Application Developer)? <verbatim><workspaceBuild></verbatim> ---++ Possible causes ---+++ Classpath problems If you are having errors because classes, types, symbols cannot be resolved, it is likely an issue with the classpath you need to supply to <verbatim><javac></verbatim> Such issues can be avoided altogether by using the Rational Application Developer specific task: <verbatim><workspaceBuild></verbatim> This task does not require any classpath setup (because it reads that information from the project metadata). ---+++ Error propagation problems If you are using the Rational Application Developer tasks for building in a command line Rational Team Concert build definition, any errors reported inside the script are not automatically propagated to the Rational Team Concert build results. Logic inside your script will need to perform such error propagation. You will need to use Jazz build Ant tasks to communicate to the Rational Team Concert build results specific error messages generated by Rational Application Developer Ant tasks. This requires that you execute the build inside a shell-sharing installation of Rational Application Developer and the Rational Team Concert Client for Eclipse (Extension install). ---++ Possible solutions The following two technotes show (with an example) how to solve both types of problems: * If you want to use a command line build definition, see [[http://www.ibm.com/support/docview.wss?uid=swg21610613][Integrating the Rational Application Developer ANT build scripts in Rational Team Concert]] * If you want to use an Ant build definition, see [[http://www.ibm.com/support/docview.wss?uid=swg21622655][How to launch an IBM Rational Application Developer Build from Jazz Build Engine as an Ant build]] ---+++++!! Related topics: * Still need help troubleshooting your integrations issue? Refer to [[IntegrationsTroubleshooting][Integrations troubleshooting]] for additional topics. ---+++++!! External links: * Rational Application Developer Ant tasks: [[http://www.ibm.com/support/knowledgecenter/SSRTLW_9.0.0/com.ibm.ant.tasks.doc/topics/cant_usergoalcontainer.html][http://www.ibm.com/support/knowledgecenter/SSRTLW_9.0.0/com.ibm.ant.tasks.doc/topics/cant_usergoalcontainer.html]] * Jazz build Ant tasks reference: [[http://www.ibm.com/support/knowledgecenter/SSCP65_4.0.6/com.ibm.team.build.doc/topics/r_ant-tasks.html][http://www.ibm.com/support/knowledgecenter/SSCP65_4.0.6/com.ibm.team.build.doc/topics/r_ant-tasks.html]] * Integrating the Rational Application Developer ANT build scripts in Rational Team Concert: [[http://www.ibm.com/support/docview.wss?uid=swg21610613][http://www.ibm.com/support/docview.wss?uid=swg21610613]] * How to launch an IBM Rational Application Developer Build from Jazz Build Engine as an Ant build [[http://www.ibm.com/support/docview.wss?uid=swg21622655][http://www.ibm.com/support/docview.wss?uid=swg21622655]] ---+++++!! Additional contributors: Main.LaraZiosi <sticky></div></sticky>
E
dit
|
A
ttach
|
P
rintable
|
V
iew topic
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
: r12
<
r11
<
r10
<
r9
<
r8
|
M
ore topic actions
Deployment
Deployment web
Planning and design
Installing and upgrading
Migrating and evolving
Integrating
Administering
Monitoring
Troubleshooting
Community information and contribution guidelines
Create new topic
Topic list
Search
Advanced search
Notify
RSS
Atom
Changes
Statistics
Web preferences
NOTE: Please use the Sandbox web for testing
Status icon key:
To do
Under construction
New
Updated
Constant change
None - stable page
Smaller versions of status icons for inline text:
Copyright © by IBM and non-IBM contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our
Terms of Use.
Please read the following
disclaimer
.
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
.