It's all about the answers!

Ask a question

Failed to find the required service , Check in plugin.xml.


ANIL ABRAHAM (2322024) | asked Sep 25 '12, 4:56 p.m.

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.


Comments
Pierre-Benoit Besse commented Nov 29 '12, 11:47 a.m.

Same problem here but on interface com.ibm.team.workitem.common.IAuditableCommon

Any idea ?

3 answers



permanent link
Surender Biyyala (402548) | answered Mar 10 '14, 2:34 p.m.
 same problem here with com.ibm.team.repository.IRepositoryItemServer

Comments
Ralph Schoon commented Mar 10 '14, 3:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please open up a new question, instead of bumping up new questions, thanks.





permanent link
Ralph Schoon (61.1k33643) | 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.

permanent link
sam detweiler (12.5k6189201) | answered Mar 10 '14, 3:33 p.m.
 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


Register or to post your answer.