Plug-in Extension Implementation Class Not Able to Load Required Services
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.