Frequently Asked Questions about Lyo
Q: The validation throws a "The feature 'extends' contains an unresolved proxy" error
A: Make sure you have cloned the lyo.tools repository and imported the
org.eclipse.lyo.tools.domainmodels project. Once you have done that, close and reopen the modelling project you have been working on. Validation errors should go away.
Q: The validation throws a "The feature 'extends' has a reference to which cannot be found." error
A: See the previous question.
Q: Before regenation with a new Lyo Designer tools I has a service named
BugzillaChangeRequestService, now I have
Q: Model validation fails with error "The required feature 'vocabularies' of 'New ToolChain' must be set."
A: Your model was created in Lyo Designer 2.2.x or earlier. You need to manually upgrade the model:
- Right-click the model file and open it with Sample Ecore Model Editor.
- Right click on the
Specificationnode and click New Sibling > Vocabularies.
After saving file and reopening the diagram, the validation error should go away on subsequent revalidation.
Q: Model validation fails with "The required feature 'domainSpecification' of 'New ToolChain::XYZ placeholder::<ServiceProviderCatalog>::<ServiceProvider>::<Service>' must be set".
A. You somehow managed to create an adaptor without specifying it Domain Specification. OSLC requires (TODO/Jad) every service to have one (Lyo Designer creates a default Service for a every new adaptor). Solution:
- double click on the adaptor in question (agree to create a diagram if needed)
- click on the 'Service' circle and in the Properties panel switch to the Semantic tab.
- set the Domain Specification to a non-null value.
After saving & revalidating the error should go away.
Q: An OSLC adaptor start on a strange URL that has my machine's hostname inside
A: In earlier versions, Lyo used
InetAddress.getLocalHost().getCanonicalHostName() to get your hostname. In newer versions, you can set the
%servlet-package%.baseurl context parameter in
%servlet-package% is the package name where the
ServletListener class is located) to something like
https://example.xyz. The server will append the context path and will use it throughout the adaptor.