WARN eam.repository.provision.internal.ProvisionService - CRJZS0383W Failed to resolve the bundle
Hello,
I have created a plugin component for RTC v4 and when trying to deploy it, I am getting that warning message that I put in the title.
Try as I might, I have no clue what I am doing wrong. I am hoping that the community can point to me what is wrong with my plugin configuration.
Thank you!
PLUGIN
==============
MANIFEST.MF
-----------------------
Plugin.xml
---------------
FEATURE
===========
feature.xml
------------------
UPDATE-SITE
=================
site.xml
---------------
I have created a plugin component for RTC v4 and when trying to deploy it, I am getting that warning message that I put in the title.
Try as I might, I have no clue what I am doing wrong. I am hoping that the community can point to me what is wrong with my plugin configuration.
Thank you!
PLUGIN
==============
MANIFEST.MF
-----------------------
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ITSM2 RTC Workitem Extensions Service Participants
Bundle-SymbolicName: itsm2.rtcext.workitem.extensions.service.participants;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: ITSM2
Require-Bundle: org.eclipse.core.runtime,
itsm2.rtcext.workitem.extensions.common;bundle-version="1.0.0",
com.ibm.team.process.common;bundle-version="1.2.1000",
com.ibm.team.process.service;bundle-version="1.2.1000",
com.ibm.team.repository.common;bundle-version="1.3.1000",
com.ibm.team.repository.service;bundle-version="1.2.1000",
com.ibm.team.workitem.common;bundle-version="3.1.0",
com.ibm.team.workitem.extension;bundle-version="3.1.0",
com.ibm.team.workitem.service;bundle-version="3.1.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Activator: itsm2.rtcext.workitem.extensions.service.participants.ServiceParticipantsActivator
Plugin.xml
---------------
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="com.ibm.team.process.service.operationParticipants">
<operationParticipant
class="itsm2.rtcext.workitem.extensions.service.participants.AddSubscribersOnWorkitemSaveParticipant"
id="itsm2.rtcext.workitem.extensions.service.participants.addSubscribersOnWorkitemSave"
name="Add Subscribers on WorkItem Save"
operationId="com.ibm.team.workitem.operation.workItemSave">
<extensionService
componentId="itsm2.rtcext.workitem.extensions"
implementationClass="itsm2.rtcext.workitem.extensions.service.participants.AddSubscribersOnWorkitemSaveParticipant">
<!-- <prerequisites>
<requiredService
interface="com.ibm.team.workitem.service.IWorkItemServer"/>
</prerequisites> -->
</extensionService>
<description>
When the specified work item type is new and being saved, the required subscribers are added.
</description>
</operationParticipant>
</extension>
</plugin>
FEATURE
===========
feature.xml
------------------
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="itsm2.rtcext.workitem.extensions.server.feature"
label="ITSM2 Workitem Extensions Server Feature"
version="1.0.0.qualifier"
provider-name="ITSM2"> <description url="http://www.example.com/description">
Includes these extensions: - Add Subscribers on Workitem Save
</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>
<requires>
<import feature="com.ibm.team.process.server.jfs.feature" version="1.1.1000.v20120518_2049"/>
<import feature="com.ibm.team.repository.server.jfs.feature" version="1.0.1000.v20120518_2049"/>
<import feature="com.ibm.team.workitem.server.rtc.feature" version="3.1.0.v20120601_0115"/>
</requires>
<plugin
id="itsm2.rtcext.workitem.extensions.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="itsm2.rtcext.workitem.extensions.service.participants"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="itsm2.rtcext.workitem.extensions.service.advisors"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>NOTE : The feature make a reference to 2 plugins, but they have the same configuration, reasons for which I did not include both sets of files content.
UPDATE-SITE
=================
site.xml
---------------
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/itsm2.rtcext.workitem.extensions.server.feature_1.0.0.201304221503.jar" id="itsm2.rtcext.workitem.extensions.server.feature" version="1.0.0.201304221503"/>
</site>
Accepted answer
Problem solved.
It was a matter of incomplete configuration in plugin xml, section Extensions.
I am not sure if this is correct, but it seems to be, so I am making a note here for future reference for other people who are just starting on this subject of RTC extension development:
A plugin that extends the behaviour for, in my case, work item save operation, needs to declare in the Extensions section 2 entries:
- first one of the type : com.ibm.team.repository.common.components
- second one of the type : operation specific, for example com.ibm.team.process.service.operationAdvisors
Also, as a general note, make sure that all component IDs are unique and that component names are also unique because RTC uses these pieces of information in the plugin registration process and overlap will result in unpredictable results.
Question answered. Thread can be closed!
It was a matter of incomplete configuration in plugin xml, section Extensions.
I am not sure if this is correct, but it seems to be, so I am making a note here for future reference for other people who are just starting on this subject of RTC extension development:
A plugin that extends the behaviour for, in my case, work item save operation, needs to declare in the Extensions section 2 entries:
- first one of the type : com.ibm.team.repository.common.components
- second one of the type : operation specific, for example com.ibm.team.process.service.operationAdvisors
Also, as a general note, make sure that all component IDs are unique and that component names are also unique because RTC uses these pieces of information in the plugin registration process and overlap will result in unpredictable results.
Question answered. Thread can be closed!
Comments
2 other answers
Im facing with the same issue. In my operation advisor plugin am also having asynchronous task extension also. Imnot sure what I'm missing. I have included all necessary features.
But still am getting the error. I cross checked with the above mentioned steps.
But still am getting the error. I cross checked with the above mentioned steps.
Comments
1 vote
Just for future reference I'm also posting my findings about this error message (thread subj) here. I got the exact same message. I followed the Extension workshop for RTC 4.0 and did exactly (if this is stated in the workshop, I have missed it) as the sample plugins, but still I got the message: CRJZS0383W Failed to resolve the bundle "xyz".
I found out that Eclipse "Automagically" puts in MANIFEST.MF:
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
If you remove this, or change it to 1.5, THEN IT WORKS!!! OMG!! That's about 5 hrs work time wasted... oh well.
Another hint for the work shop about licenses:
1. Do not install the 10 free licenses for 4.0, but choose the one below which says "Fix for work item xxx". Else you will not be able to use your RTC installation.
2. It does not matter if you activate the trial licenses. When you import the Extension workshop TAR's, the trials have already expired.
Cheers
/Morten
I found out that Eclipse "Automagically" puts in MANIFEST.MF:
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
If you remove this, or change it to 1.5, THEN IT WORKS!!! OMG!! That's about 5 hrs work time wasted... oh well.
Another hint for the work shop about licenses:
1. Do not install the 10 free licenses for 4.0, but choose the one below which says "Fix for work item xxx". Else you will not be able to use your RTC installation.
2. It does not matter if you activate the trial licenses. When you import the Extension workshop TAR's, the trials have already expired.
Cheers
/Morten
Comments
1 vote
Comments
Krzysztof Kaźmierczyk
Apr 22 '13, 9:43 a.m.Dan Sevcenco
Apr 22 '13, 10:21 a.m.Aradhya K
JAZZ DEVELOPER Apr 23 '13, 1:53 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 23 '13, 3:21 a.m.