Client Library not found during the service call
Hi,
I am doing the hello JAZZ example. I think my server components are properly deployed(The components appear on the server status page). I am not running in the local mode rather i ve setup the tomcat and deployed the components there. I am trying to run the test plugin that runs a client code that will make a service call. I believe the authentication happens properly and it fails in the following code, IHelloJazzClientLibrary library = (IHelloJazzClientLibrary) repo.getClientLibrary(IHelloJazzClientLibrary.class); Where it tries to find the client factory and instantiate the client. When i debug in i see the descriptors map in the ClientLibraryFactoryRegistry class to have zero entries in it. So the method public Object getClientLibrary(TeamRepository repository, Class interfaceClass) in ClientLibraryFactoryRegistry class looks up that map for my client interface and return me null. My question is this. How could i tell my repository when i start it up to go register my client and client factory. Is there any configuration error that i am making which makes my test puligin not see the client plugin properly. (I ve included the client plugin as a dependency.) Thanks |
2 answers
Hi,
I'm not sure what is causing this problem, but here are the two things I would double-check first: 1) In the HelloJazz Tutorial there is a subsection titled "Export and Declare the Client Library Interface". Make sure you did that step. 2) The next part of the tutorial talks about extending the com.ibm.team.repository.client.clientLibraryFactory extension-point. Double-check this step. I think if you had a typo in the values for this extension, it would explain the problem you are describing. cherath@ca.ibm.com wrote: Hi, |
That helped, Thanks
Hi, Hi, |
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.