Failed to resolve the bundle "HelloWorldAdvisor".
I have ported the HelloWorldAdvisor sample described in https://jazz.net/library/article/495 to RTC4.0. I had this example working fine in RTC3.x. With the 4.0 implementation I am getting the following error in the ccm.log.
2012-11-13 11:24:51,658 [Launch callback handler] WARN eam.repository.provision.internal.ProvisionService - CRJZS0383W Failed to resolve the bundle "HelloWorldAdvisor".
I rechecked the plugin.xml, feature.xml, and site.xml as well as the setup of the .ini provisioning file and I don't see any problems. Posted these files content below.
How do I debug this problem?
plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="com.ibm.team.process.service.operationAdvisors">
<operationAdvisor
class="helloworldadvisor.HelloWorldProhibitSave"
id="HelloWorldAdvisor.prohibitSave"
name="Prohibit Save (Hello World Advisor)"
operationId="com.ibm.team.workitem.operation.workItemSave">
<extensionService
componentId="helloworldadvisor.HelloWorldProhibitSave"
implementationClass="helloworldadvisor.HelloWorldProhibitSave">
<prerequisites>
<requiredService
interface="com.ibm.team.links.common.service.ILinkService" />
<requiredService
interface="com.ibm.team.repository.service.IRepositoryItemService" />
<requiredService
interface="com.ibm.team.workitem.service.IWorkItemServer" />
<requiredService
interface="com.ibm.team.workitem.common.IWorkItemCommon" />
</prerequisites>
</extensionService>
</operationAdvisor>
</extension>
</plugin>
feature.xml
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="HelloWorldAdvisorFeature"
label="HelloWorldAdvisorFeature"
version="1.0.0.0">
<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<plugin
id="HelloWorldAdvisor"
download-size="0"
install-size="0"
version="1.0.0.0"
unpack="false"/>
</feature>
site.xml
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/HelloWorldAdvisorFeature_1.0.0.0.jar" id="HelloWorldAdvisorFeature" version="1.0.0.0">
<category name="Work Item Save Operations"/>
</feature>
<category-def name="Work Item Save Operations" label="Work Item Save Operations"/>
</site>
HelloWorldAdvisor.ini (at C:\IBM\JazzTeamServer\server\conf\ccm\provision_profiles)
url=file:ccm/sites/HelloWorldAdvisor-update-site
featureid=HelloWorldAdvisorFeature
features, plugins, and site.xml all located at:
C:\IBM\JazzTeamServer\server\conf\ccm\sites\HelloWorldAdvisor-update-site
3 answers
Errors of the sort :
CRJZS0383E The "rtc_test_plugin" bundle could not be resolved.
are seen when
"the version of java on the server where the plugin is provisioned"
is lower than
"the version of java used by the eclipse client where the plugin is developed"
by pointing my Eclipse project to refer to the JRE from the server installation, and resetting the server (cmdRequestReset) and reprovisioning the update site, the issue was resolved for me...