From 80a8297a4b84eb33a0f77e9a56283e3c8fb5f929 Mon Sep 17 00:00:00 2001 From: Michal Banka Date: Mon, 14 Sep 2020 23:04:37 +0200 Subject: Fix bug throwing exception when first event is collected - Problem: When running app from jar (e.g. in docker env) ClassLoader badly interprete classpath as root of app jar, while resources are located in jar under BOOT-INF/classes/ in Spring Boot apps. - Solution: Moved file from resources to etc directory so ClassLoader isn't needed. Filepath of api_version_description.json which previously was badly resolved now is configured in collector.properties. Change-Id: I690394cc59e16c95f5902045efc3fdaf13bf9112 Signed-off-by: Michal Banka Issue-ID: DCAEGEN2-2426 --- dpo/data-formats/ConsulConfig.json | 1 + 1 file changed, 1 insertion(+) (limited to 'dpo/data-formats') diff --git a/dpo/data-formats/ConsulConfig.json b/dpo/data-formats/ConsulConfig.json index f2276194..168eda06 100644 --- a/dpo/data-formats/ConsulConfig.json +++ b/dpo/data-formats/ConsulConfig.json @@ -76,6 +76,7 @@ "collector.service.secure.port": "8443", "auth.method": "noAuth", "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore", + "collector.description.api.version.location": "etc/api_version_description.json", "services_calls": [], "header.authlist": "sample1,$2a$10$0buh.2WeYwN868YMwnNNEuNEAMNYVU9.FSMJGyIKV3dGET/7oGOi6" } -- cgit 1.2.3-korg