Skip to content
Andrew Berezovskyi edited this page Jul 27, 2019 · 11 revisions

Q: Old generated files are not deleted automatically.

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.

Q: All the boxes in the model have "Invalid" written inside.

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.

Q: Internal error occurred during Loading Models.

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.

Clone this wiki locally