It's all about the answers!

Ask a question

Plug-in Extension Implementation Class Not Able to Load Required Services


Daniel Chirillo (1801623) | asked Dec 04 '18, 11:26 a.m.

 I'm creating a server plug-in.  I have required services in plugin.xml:


  <extension
         point="....">
      <asynchronousTask
            taskId="....">
         <extensionService
               componentId="...."
               implementationClass=".....ScheduledTask">
            <prerequisites>
               <requiredService interface="com.ibm.team.workitem.service.IWorkItemServer"/>
               <requiredService interface="com.ibm.team.process.service.IProcessServerService"/>
               <requiredService interface="com.ibm.team.workitem.common.IWorkItemCommon"/>
               <requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/>
               <requiredService interface="com.ibm.team.repository.common.service.IContributorService"/>
               <requiredService interface="com.ibm.team.workitem.service.IQueryServer"/>
               <requiredService interface="com.ibm.team.repository.common.service.IQueryService"/>
               <requiredService interface="com.ibm.team.workitem.service.IAuditableServer"/>
               <requiredService interface="com.ibm.team.process.service.IProcessServerService"/>

The ScheduledTask class, however, is unable to load any of those services.  getService() results in a ServiceNotFoundException.  The exception message says to check prerequisites in plugin.xml.

Be the first one to answer this question!


Register or to post 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.