Create my own participant based in Rational Team Concert 4.0 Extensions Workshop
Accepted answer
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>
3 other answers
Comments
"com.ibm.team.workitem.service.internal.AllNodeProjectAreaChangeListener" service failed to activate because a service that it depends on, "com.ibm.team.workitem.common.internal.IWorkItemRepositoryService", failed to be activated.
be careful.. just because there is a classname, doesn't mean THAT name is exposed as a service. many times I have to look in the repository.service plugin.xml to find out how the services are registered..
in the sdk plugins folder, fond the folder for the repository service, in that folder is the plugin.xml .
But the error is caused by: com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The "com.ibm.team.workitem.service.internal.WorkItemRepositoryService" service failed to activate because a service that it depends on, "com.ibm.team.workitem.service.IWorkItemServer", failed to be activated. For more details, open the help system and search for CRJAZ1972E.
<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?
https://serveraddress:port/ccm/admin/cmd/requestReset
the stop/start server
else u will keep using the old plugin in the server cache