opengeospatial / ets-citygml30-part2

Other
1 stars 1 forks source link

Rescources not found when running ETS in servlet container #41

Closed bpross-52n closed 3 weeks ago

bpross-52n commented 1 month ago

When running the ETS in a servlet container, several FileNotFoundExceptions appear in the logs:

2024-08-14 08:48:15 java.io.FileNotFoundException: file:/usr/local/tomcat/webapps/teamengine/WEB-INF/lib/ets-citygml30-part2-0.3-SNAPSHOT.jar!/org/opengis/cite/citygml30part2/type-inheritance.json (No such file or directory)
2024-08-14 08:48:15     at java.io.FileInputStream.open0(Native Method)
2024-08-14 08:48:15     at java.io.FileInputStream.open(FileInputStream.java:195)
2024-08-14 08:48:15     at java.io.FileInputStream.<init>(FileInputStream.java:138)
2024-08-14 08:48:15     at java.io.FileInputStream.<init>(FileInputStream.java:93)
2024-08-14 08:48:15     at java.io.FileReader.<init>(FileReader.java:58)
2024-08-14 08:48:15     at org.opengis.cite.citygml30part2.util.ValidationUtils.getTypeData(ValidationUtils.java:221)
2024-08-14 08:48:15     at org.opengis.cite.citygml30part2.core.CoreValidation.VerifyCoreReference(CoreValidation.java:36)
....
2024-08-14 08:48:15 java.io.FileNotFoundException: file:/usr/local/tomcat/webapps/teamengine/WEB-INF/lib/ets-citygml30-part2-0.3-SNAPSHOT.jar!/org/opengis/cite/citygml30part2/boundaries.json (No such file or directory)
2024-08-14 08:48:15     at java.io.FileInputStream.open0(Native Method)
2024-08-14 08:48:15     at java.io.FileInputStream.open(FileInputStream.java:195)
2024-08-14 08:48:15     at java.io.FileInputStream.<init>(FileInputStream.java:138)
2024-08-14 08:48:15     at java.io.FileInputStream.<init>(FileInputStream.java:93)
2024-08-14 08:48:15     at java.io.FileReader.<init>(FileReader.java:58)
2024-08-14 08:48:15     at org.opengis.cite.citygml30part2.util.ValidationUtils.readBoundariesJsonObj(ValidationUtils.java:328)
2024-08-14 08:48:15     at org.opengis.cite.citygml30part2.util.ValidationUtils.getAllowedBoundaries(ValidationUtils.java:199)
2024-08-14 08:48:15     at org.opengis.cite.citygml30part2.util.ValidationUtils.isBoundariesValid(ValidationUtils.java:291)
2024-08-14 08:48:15     at org.opengis.cite.citygml30part2.module.BuildingModuleValidation.VerifyBuildingElementBoundaries(BuildingModuleValidation.java:45)
....

To reproduce: Testes with branch develop-jiann Start the ETS in a servlet container or using docker. Execute a test run, the exceptions should appear in the logs. Tests depending on the resources will fail.