-
Notifications
You must be signed in to change notification settings - Fork 10
FAQ
Most likely you have opened an old model file with a new version of Lyo Designer. You may need to do some updates to your model, check the warnings carefully and check out https://oslc.github.io/developing-oslc-applications/eclipse_lyo/toolchain-modelling-workshop#adapter-interface-view
Most likely you do not have org.eclipse.lyo.tools.domainmodels project loaded but your Lyo Designer models refer to it. Same applies to your own domain models referenced from the toolchain model. See https://oslc.github.io/developing-oslc-applications/eclipse_lyo/modelling-howto.html for the guidance.
Yes, this is the expected behaviour, in case your code depends on the old generated code. If you want to make sure all old generated files have been removed, run the following command in a shell (Git Bash on Windows should work just fine, on Mac you will need to install findutils
via brew and add them to the PATH):
find ./src/main -type f -exec grep -ql '// Start of user code' {} \; -printf '%T+ %p\n' | sort | head -n 100
This command shall be run in the root folder of the project where pom.xml
is located. You will see up to 100 oldest files generated by Lyo Designer. You can also add an alias to your shell init file:
alias lyod-oldgen="find ./src/main -type f -exec grep -ql '// Start of user code' {} \; -printf '%T+ %p\n' | sort | head -n 100"
Now, it should work like this:
└─[$] <git:(master)> lyod-oldgen
2019-07-11+20:29:17.1984744340 ./src/main/java/eu/scott/warehouse/domains/mission/MissionDomainConstants.java
2019-07-13+20:35:40.4178329170 ./src/main/java/eu/scott/warehouse/domains/blocksworld/BworldDomainConstants.java
2019-07-13+20:35:40.5122439570 ./src/main/java/eu/scott/warehouse/domains/pddl/PddlDomainConstants.java
2019-07-13+20:35:40.5306682840 ./src/main/java/eu/scott/warehouse/domains/RdfsDomainConstants.java
2019-07-13+20:35:40.5529836040 ./src/main/java/eu/scott/warehouse/domains/twins/TwinsDomainConstants.java
...
Be sure to check each old file individually to make sure it was generated.
A: Downgrade to Eclipse 2018-09 or older (as of 2019-04-20). Everything works fine in Eclipse 2019-06.
Q: I am getting javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: org.apache.jasper.JasperException: Unable to compile class for JSP
A: You have re-generated the POJOs from the Specification model with Lyo Designer 4.0 but your OSLC Server code was generated with Lyo Designer 2.4 or lower.
Lyo Designer does not support backwards compatibility of the models. Once you open it (and save it) under the new version, it is no longer guaranteed to work with older versions of Lyo. See https://github.com/eclipse/lyo.designer/issues/14 for details.