Add Absences to users using Client APIs as web-service
Accepted answer
You have to package these libraries (JAR files) with your application and add them to the ClassPath, so they can be loaded by the class loader.
Comments
Thanks Ralph for your quick response
Actually issue is not with the Plain Java Libraries, these loads fine but this exception:
Caused by: java.lang.ClassNotFoundException: com.ibm.team.apt.common.resource.IContributorAbsence
related to some API which exists in RTC sdk, not in Plain Java Libraries.
How can I load RTC Sdk at compile time while running web-service
Since there is no public API for planning and the interface is packaged with the agile planning component (.apt.) the jar file is not shipped with the plain Java Client libraries and you have to search the file com.ibm.team.apt.common*.jar in the Eclipse Plugins folder. If you use Installation manager to install RTC Eclipse, it might be in the installation manager shared folder.
You basically add that jar file to the other jar files you are using.
Thanks Ralph for your guidence, feeling honored while discussing with you
I just found the jars in Plug-in dependencies folder, So now I move forward to add those in class path as well
I will put the solution here If I able to complete my task
Thanks for finding this, I updated the blog post.
Task completed
These two jars were available in Plug-in dependencies:
- com.ibm.team.apt.client_3.0.1100.v20141011_0139.jar
- com.ibm.team.apt.common_3.0.1200.v20141011_0139.jar
which needs to be added in classpath
You needed both? Thanks for letting us know.
Yes because these are the packages that were used in ScheduleAbsence Client Extension as you know:
and these needed both jars
Good to know. Thank you very much!
I added that to the blog post as well.
I ran the tool from within Eclipse. These days I often also run it from outside, where it becomes apparent. Back then, I did not really have the time and also hadn't developed a good way for a standardized command line batch.