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.
|
3 answers
David Honey (1.8k●1●7)
| answered Nov 08 '21, 8:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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.
|
I recently started developing a Spring Boot app that uses Lyo. Haven't had Lyo-issues so far.
You don't make it easy for others to help you when the only detail about your problem you share is, "it doesn't work."
Comments
Debayan De
commented Nov 09 '21, 12:48 a.m.
I just want to know what all dependencies are required to successfully initialize an object of class 'JazzRootServicesHelper'..maybe I need that jar to be present in my deployment folder, as every time the call goes to the method's finally block after executing the line JazzRootServicesHelper helper = new JazzRootServicesHelper(webContextUrl,OSLCConstants.OSLC_CM_V2);. I think you're asking on the wrong forum. It looks like
|
Ralph Schoon (63.5k●3●36●46)
| answered Nov 09 '21, 1:48 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Nov 09 '21, 2:14 p.m. 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.
In addition to that, Lyo uses Maven and you would only have to look into the POM file in the Eclipse project containing the class above to understand the dependencies (or you try to figure it out using the imports).
I have no idea how you get Spring and Maven to work together. There are likely other forums that are better suited for those questions.
|
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.