Bug 512831 - Multiple problems on org.eclipse.lyo.oslc4j.stockquote
Summary: Multiple problems on org.eclipse.lyo.oslc4j.stockquote
Status: NEW
Alias: None
Product: Lyo
Classification: Technology
Component: Core (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Mac OS X
: P4 minor (vote)
Target Milestone: 2.x.x   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2017-02-28 12:32 EST by Andrii Berezovskyi CLA
Modified: 2018-08-08 17:08 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrii Berezovskyi CLA 2017-02-28 12:32:54 EST
1. why is it in the lyo.core instead of lyo.docs?
2. why does it depend on org.eclipse.lyo.oslc4j.stockquote.common, which is not deployed to a maven repo? Otherwise it shall have a parent so that dependent modules can be built.
3. why does it depend on the WAR build artefact of org.eclipse.lyo.oslc4j.registry? shall this dependency be (a) eliminated, (b) deployed to maven as an overlay, or (c) included as a module on a common parent?

The problems were originally reported on https://www.eclipse.org/forums/index.php?t=rview&goto=1755157

Problem 2 has the following "signature":

[ERROR] Failed to execute goal on project oslc4j-stockquote-sample: Could not resolve dependencies for project org.eclipse.lyo.oslc4j.samples:oslc4j-stockquote-sample:war:3.0.0-SNAPSHOT: Could not find artifact org.eclipse.lyo.oslc4j.samples:oslc4j-stockquote-common:jar:3.0.0-SNAPSHOT in snapshots (http://aide.md.kth.se/artifactory/libs-snapshot) -> [Help 1]

Problem 3 results in a runtime exception:

java.io.FileNotFoundException: /Users/andrew/kth/_lyo/org.eclipse.lyo.core/org.eclipse.lyo.oslc4j.stockquote/../org.eclipse.lyo.oslc4j.registry/target/oslc4j-registry-3.0.0-SNAPSHOT.war
	at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:505)
	at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:71)
	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:457)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:493)

which causes the failure to register the SP catalog:

SCHWERWIEGEND: Unable to register with service provider catalog
org.apache.wink.client.ClientWebException
	at org.eclipse.lyo.oslc4j.client.OslcRestClient.getOslcResource(OslcRestClient.java:198)
	at org.eclipse.lyo.oslc4j.client.ServiceProviderRegistryClient.getServiceProviderCatalog(ServiceProviderRegistryClient.java:245)
	at org.eclipse.lyo.oslc4j.client.ServiceProviderRegistryClient.registerServiceProvider(ServiceProviderRegistryClient.java:93)
	at org.eclipse.lyo.oslc4j.stockquote.servlet.ServletListener$RegistrationTask.run(ServletListener.java:151)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Comment 2 Andrii Berezovskyi CLA 2018-05-14 08:47:47 EDT
low prio