Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] build error org.eclipse.lyo.clients:oslc-java-client

Oh yeah, and the sequence of actions sounds about right Umesha!

When in doubt, always stick to the master branch.

--
/Andrew
(from phone)

22 mars 2019 kl. 19:56 skrev Andrii Berezovskyi <andriib@xxxxxx>:

Yep, deleting old stuff is a very good advice

--
/Andrew

20 mars 2019 kl. 07:25 skrev Jad El-Khoury <jad@xxxxxx>:

Hi Umesha

 

You should NOT clone any repositories, except for https://github.com/OSLC/lyo-samples. All the Lyo libraries will be managed through maven.

 

I even suggest you

1. delete all Lyo projects from your Eclipse environment. This makes sure not mixing the source code from them into you project.

2. Delete everything  under <home-directory>\.m2\repository\org\eclipse\lyo. This makes sure you download the proper versions of Lyo, in case you have earlier tried to build your own.

 

regards

______________________________

Jad El-khoury, PhD

KTH Royal Institute of Technology

School of Industrial Engineering and Management, Mechatronics Division

Brinellvägen 83, SE-100 44 Stockholm, Sweden

Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45

jad@xxxxxx, https://www.kth.se/profile/jad

 

From: lyo-dev-bounces@xxxxxxxxxxx <lyo-dev-bounces@xxxxxxxxxxx> On Behalf Of Umesha Krishnegowda
Sent: Wednesday, 20 March 2019 05:54
To: Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>
Subject: Re: [lyo-dev] build error org.eclipse.lyo.clients:oslc-java-client

 

HI Andrew, 

 

thanks

 

I want to test the beow file, can you please let me know the steps to perfrom in eclipse. I have DNG ready in my machine.

 

I followed this way

 

eclipse installed with GIT and Maven too.

Please let me know, which branches i should clone and import to eclipse along with Lyo clinet (Lyo clinet branch too) librabries etc.

maven clean and maven install

then RRCFormSample.java -- Run as java application

 

 

 

Please correct me if i am wrong.

 

Best Regards

Umesha

 

On Wed, Mar 20, 2019 at 1:08 AM Andrii Berezovskyi <andriib@xxxxxx> wrote:

Hello Umesha,

 

I was going over my inbox and saw your question again. You should not be using the new version of library that is still in development. I replied on https://github.com/eclipse/lyo.client/issues/41 that you should use current samples for the latest version of the library - 2.4.0

 

 

To be clear: DO NOT BUILD the client yourself. Just use our releases on Maven.

 

And please include versions of the OS, JDK and Maven if you still have any issues. 

 

--
–Andrew.



2019-03-18  kl. 15:04 skrev Umesha Krishnegowda <umesh2007cit@xxxxxxxxx>:

 

Sure

 

On Mar 18, 2019 8:25 PM, "Andrii Berezovskyi" <andriib@xxxxxx> wrote:

And please don't file a bug report, send a mail and write on the chat all at the same time in the future.

--

/Andrew


18 mars 2019 kl. 15:33 skrev Umesha Krishnegowda <umesh2007cit@xxxxxxxxx>:

Thanks jim. I will try with oslc4j 2.4 tomorrow and let you know. Good day ahead.

 

On Mar 18, 2019 7:03 PM, "Jim Amsden" <jamsden@xxxxxxxxxx> wrote:

Looks like you're picking up the wrong version of Jena. You might have the wrong version of oslc-core loaded into eclipse.

I would recommend that you stick with OSLC4J 2.4.0 for your initial study and not try to rely on incomplete changes in 4.0.0.

We're still working on getting everything merged into 4.0.0-SNAPSHOT and I'd expect problems until we get a little further.


Jim Amsden, Senior Technical Staff Member
OSLC and Linked Lifecycle Data
919-525-6575




From:        Umesha Krishnegowda <umesh2007cit@xxxxxxxxx>
To:        Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>
Date:        03/18/2019 09:27 AM
Subject:        Re: [lyo-dev] build error org.eclipse.lyo.clients:oslc-java-client
Sent by:        lyo-dev-bounces@xxxxxxxxxxx





thanks for your reply Jim,

I tried latest one now (/oslc4j-client-samples/src/main/java/org/eclipse/lyo/client/oslc/samples/IERMSample.java)  with below arguments 

-url https://btfs1000065149.st.mypc.net:9444/rm
-user uk
-password uk@123
-project "JKE Banking (Requirements Management)"

but i am getting below error, can you please guide me.

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.jena.system.JenaSystem.logLifecycle(Ljava/lang/String;[Ljava/lang/Object;)V
at org.apache.jena.riot.RIOT.init(RIOT.java:69)
at org.apache.jena.riot.system.InitRIOT.start(InitRIOT.java:29)
at org.apache.jena.system.JenaSystem.lambda$init$40(JenaSystem.java:114)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at org.apache.jena.system.JenaSystem.forEach(JenaSystem.java:179)
at org.apache.jena.system.JenaSystem.forEach(JenaSystem.java:156)
at org.apache.jena.system.JenaSystem.init(JenaSystem.java:111)
at org.apache.jena.rdf.model.ModelFactory.<clinit>(ModelFactory.java:49)
at org.eclipse.lyo.client.oslc.OslcClient.getCatalogUrl(OslcClient.java:590)
at org.eclipse.lyo.client.oslc.samples.IERMSample.main(IERMSample.java:140)

<mime-attachment.png>

On Mon, Mar 18, 2019 at 6:32 PM Jim Amsden <jamsden@xxxxxxxxxx> wrote:
You are attempting to use the old oslc-java-client, which depends in Apache Wink and JAX-RS 1.0, with the new 4.0.0 oslc-core which is based on JAX-RS 2.0. This old client should only be used with OSLC4J 2.4.0 or earlier. We are still working on a new oslc4j-client which uses JAX-RS 2.0 and no longer depends on Wink. If you want to try that, use branch jra-rename on lyo.client.

Jim Amsden, Senior Technical Staff Member

OSLC and Linked Lifecycle Data

919-525-6575





From:        
Umesha Krishnegowda <umesh2007cit@xxxxxxxxx>
To:        
lyo-dev@xxxxxxxxxxx
Date:        
03/18/2019 08:49 AM
Subject:        
[lyo-dev] build error org.eclipse.lyo.clients:oslc-java-client
Sent by:        
lyo-dev-bounces@xxxxxxxxxxx





Dear Experts,

AM new OSLC topic, when i tried to build am getting below error. Can you please help me


[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< org.eclipse.lyo.clients:oslc-java-client >--------------
[INFO] Building OSLC Java Client 4.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from :
https://repo.eclipse.org/content/repositories/lyo-releases/org/apache/wink/wink-client/1.4/wink-client-1.4.pom
[INFO] Downloading from :
https://repo.maven.apache.org/maven2/org/apache/wink/wink-client/1.4/wink-client-1.4.pom
[INFO] Downloading from :
https://repo.eclipse.org/content/repositories/lyo-releases/org/apache/wink/wink/1.4/wink-1.4.pom
[INFO] Downloading from :
https://repo.maven.apache.org/maven2/org/apache/wink/wink/1.4/wink-1.4.pom
[INFO] Downloading from :
https://repo.eclipse.org/content/repositories/lyo-releases/org/apache/wink/wink/1.2.1-incubating/wink-1.2.1-incubating.pom
[INFO] Downloading from :
https://repo.maven.apache.org/maven2/org/apache/wink/wink/1.2.1-incubating/wink-1.2.1-incubating.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.481 s
[INFO] Finished at: 2019-03-18T18:08:04+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project oslc-java-client: Could not resolve dependencies for project org.eclipse.lyo.clients:oslc-java-client:jar:4.0.0-SNAPSHOT: Failed to collect dependencies at org.apache.wink:wink-client:jar:1.4: Failed to read artifact descriptor for org.apache.wink:wink-client:jar:1.4: Could not transfer artifact org.apache.wink:wink-client:pom:1.4 from/to lyo-releases (
https://repo.eclipse.org/content/repositories/lyo-releases/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

--
Thanks & Regards
   Umesh
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://www.eclipse.org/mailman/listinfo/lyo-dev


_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev


--
Thanks & Regards
   Umesh_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev



_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev


_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

 

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev


 

--

Thanks & Regards

   Umesh

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

Back to the top