Failed to find the required service , Check in plugin.xml.
Even after included "com.ibm.team.process.internal.common.service.IProcessService" in Plugin.xml , receving following error the trigger of the Plugin. Am i missing any thing ?? The service 'testworldadvisor.TestWorldProhibitSave@15161516' failed to find the required service 'interface com.ibm.team.process.internal.common.service.IProcessService'. Check <prerequisites> in plugin.xml.
|
3 answers
Ralph Schoon (63.6k●3●36●46)
| answered Mar 10 '14, 3:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The answer to your question is in Article 1000 in the library, I think. Look for prerequisite. You can also find how that works at the end of https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/.
You need to add a prerequisite section in the plugin XML to the extension point. |
Net.. if you need access to loaded 'services', you must tell the plugin loader by defining these prerequisite dependencies in the plugin.xml in advance.
is not shown, but from one of my plugins
<extensionService
componentId="com.sd.tools.workitem.createapproval.participant.component"
implementationClass="com.sd.tools.CreateApprovalParticipant">
<prerequisites>
<requiredService interface="com.ibm.team.repository.common.service.IContributorService"/>
<requiredService interface="com.ibm.team.workitem.common.IAuditableCommon"/>
<requiredService interface="com.ibm.team.process.service.IProcessServerService"/>
<requiredService interface="com.ibm.team.workitem.service.IWorkItemServer"/>
<requiredService interface="com.ibm.team.repository.common.service.IQueryService"/>
<requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/>
</prerequisites>
</extensionService>
|
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.
Comments
Same problem here but on interface com.ibm.team.workitem.common.IAuditableCommon
Any idea ?