It's all about the answers!

Ask a question

Creating links


Sola Otudeko (4511516) | asked Nov 03 '11, 2:08 p.m.
Hi, Can anyone please help with this. I am getting this error in my participant...not finding service I am trying to use

17:39:35,069 WARN com.ibm.team.repository - Exception thrown when resolving package descriptor for package "org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor@2df02df0": java.lang.ClassNotFoundException: com.ibm.team.repository.internal.tests.componentversion.ComponentversionPackage2
17:39:59,634 ERROR com.ibm.team.process.common - CRJAZ6011E:An exception occurred creating extension.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The service "net.jazz.rtcext.workitem.extensions.service.DeployOnStateChangeParticipant" failed to activate because a service it depends on, "com.ibm.team.links.service.ILinkServiceLibrary", failed to be activated
at com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)

I can't actually find the classes in the sdk even though the import does not complain.


>> in my java code <<

..
import com.ibm.team.links.common.service.ILinkService;
import com.ibm.team.links.service.ILinkServiceLibrary;
..

ILinkService linkService = getService(ILinkService.class);
ILinkServiceLibrary linkLibrary = (ILinkServiceLibrary) linkService.getServiceLibrary(ILinkServiceLibrary.class);
..

Thanks
Sola

2 answers



permanent link
SEC Servizi (97123660) | answered Dec 19 '11, 7:04 a.m.
I am getting this error in my participant...not finding service I am trying to use

17:39:59,634 ERROR com.ibm.team.process.common - CRJAZ6011E:An exception occurred creating extension.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The service "net.jazz.rtcext.workitem.extensions.service.DeployOnStateChangeParticipant" failed to activate because a service it depends on, "com.ibm.team.links.service.ILinkServiceLibrary", failed to be activated
at com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)

I can't actually find the classes in the sdk even though the import does not complain.

See this post: https://jazz.net/forums/viewtopic.php?p=56621#56621. It helps me, too. :)
Your Java code is fine:
import com.ibm.team.links.common.service.ILinkService;

import com.ibm.team.links.service.ILinkServiceLibrary;

ILinkService linkService = getService(ILinkService.class);
ILinkServiceLibrary linkLibrary = (ILinkServiceLibrary) linkService.getServiceLibrary(ILinkServiceLibrary.class);

but you have to add the required service in your "plugin.xml" file:
<extensionService componentId="your.component.id" implementationClass="your.class">

<prerequisites>
<requiredService interface="com.ibm.team.links.common.service.ILinkService" />
</prerequisites>
</extensionService>

Cheers.

permanent link
Joseph Simon Arokiaraj (21414845) | answered Dec 19 '11, 7:48 a.m.
Hi Sola,

I am trying to find an example to login to project repository using java application.

Please update me if you have any example code for it?

Cheers,
Simon



Hi, Can anyone please help with this. I am getting this error in my participant...not finding service I am trying to use

17:39:35,069 WARN com.ibm.team.repository - Exception thrown when resolving package descriptor for package "org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor@2df02df0": java.lang.ClassNotFoundException: com.ibm.team.repository.internal.tests.componentversion.ComponentversionPackage2
17:39:59,634 ERROR com.ibm.team.process.common - CRJAZ6011E:An exception occurred creating extension.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The service "net.jazz.rtcext.workitem.extensions.service.DeployOnStateChangeParticipant" failed to activate because a service it depends on, "com.ibm.team.links.service.ILinkServiceLibrary", failed to be activated
at com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)

I can't actually find the classes in the sdk even though the import does not complain.


>> in my java code <<

..
import com.ibm.team.links.common.service.ILinkService;
import com.ibm.team.links.service.ILinkServiceLibrary;
..

ILinkService linkService = getService(ILinkService.class);
ILinkServiceLibrary linkLibrary = (ILinkServiceLibrary) linkService.getServiceLibrary(ILinkServiceLibrary.class);
..

Thanks
Sola

Your answer


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.