Not able to run OSLC lyo sample code for RTC in Spring boot framework environment
I am trying to create a connector for RTC using the sample code provided in the link 'https://github.com/OSLC/lyo-samples/blob/master/oslc-java-samples/src/main/java/org/eclipse/lyo/client/oslc/samples/RTCFormSample.java' in Spring Boot framework using STS 4 IDE.
My pom.xml contains all the dependencies which are there in the sample pom.xml provided in the above link, and it works fine when I invoke the method from Test class containing the main method.
But after deploying the jar and all the dependent jars under Maven Dependencies to my deployment folder, I can see that my code is not working when the call comes to the following line:
JazzRootServicesHelper helper = new JazzRootServicesHelper(webContextUrl,OSLCConstants.OSLC_CM_V2);
Need help running this code from a deployed jar, which I am not able to do at the moment, which I am guessing, is due to the absence of one or many dependent jars inside the deployed folder.
3 answers
You should probably ask that question on the OSLC Forum at https://forum.open-services.net/ since OSLC Lyo is part of OSLC code, not Jazz code.
Comments
As David has rightly pointed out, this is the wrong forum for the question. Moreover, the JazzRootservicesHelper is from an old Eclise Lyo version and deprecated. See https://github.com/OSLC/lyo-samples/blob/master/oslc4j-client-samples/src/main/java/org/eclipse/lyo/oslc4j/client/samples/EWMSample.java for the current version. The new class is called RootServicesHelper.