Create my own participant based in Rational Team Concert 4.0 Extensions Workshop
![]()
I'm trying to create my own Participant based in Rational Team Concert 4.0 Extensions Workshop. But I'm having the following error:
The service 'br.com.gvt.participant.CancelarFilhosPeloPai@3bc23bc2' failed to find the required service 'interface com.ibm.team.workitem.service.IWorkItemServer'. Check <prerequisites> in plugin.xml.
The console shows the following error:
16:15:27,058 [138610755@qtp-676014155-6] ERROR com.ibm.team.process.common - The service 'br.com.gvt.participant.CancelarFilhosPeloPai@3bc23bc2' failed to find the required service 'interface com.ibm.team.workitem.service.IWorkItemServer'. Check <prerequisites> in plugin.xml.
com.ibm.team.repository.common.transport.internal.registry.ServiceNotFoundException: The service 'br.com.gvt.participant.CancelarFilhosPeloPai@3bc23bc2' failed to find the required service 'interface com.ibm.team.workitem.service.IWorkItemServer'. Check <prerequisites> in plugin.xml.
at com.ibm.team.repository.service.AbstractService.getService(AbstractService.java:752)
at br.com.gvt.participant.CancelarFilhosPeloPai.run(CancelarFilhosPeloPai.java:86)
Where should I put this class (interface com.ibm.team.workitem.service.IWorkItemServer)? For debug mode works.
Thanks.
|
Accepted answer
![]()
If u need additional services, then you MUST declare them in your plugin's plugin.xml
like this <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> Tayane Fernandes selected this answer as the correct answer
|
3 other answers
![]()
directly from my participant
<plugin> <extension point="com.ibm.team.process.service.operationParticipants"> <operationParticipant class="com.sd.tools.CreateApprovalParticipant" id="com.sd.tools.workitem.createapproval.participant" name="Create Approval Participant" operationId="com.ibm.team.workitem.operation.workItemSave"> <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> Comments and u are restarting the server cold after changing your plugin, right?
|
![]()
This is my plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="com.ibm.team.process.service.operationParticipants">
<operationParticipant class="br.com.gvt.participant.CancelarFilhosPeloPai"
id="GVT-CancelarFilhosPeloPai.CancelarFilhosPeloPai"
name="GVTCancelarFilhosPeloPai"
operationId="com.ibm.team.workitem.operation.workItemSave">
<extensionService
componentId="GVT-CancelarFilhosPeloPai.extensionService"
implementationClass="br.com.gvt.participant.CancelarFilhosPeloPai">
<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>
</operationParticipant>
</extension>
</plugin>
|
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.