Make service stop when sql configuration is invalid

This commit is contained in:
Fabio Sinibaldi 2020-01-28 19:17:09 +01:00
parent d6ddd74c2f
commit e4e0eae0b7
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public class PerformServiceLifecycleManager extends ApplicationLifecycleHandler
PerformanceManagerImpl.importSchema(schema,webinfPath);
}catch(Throwable t) {
log.warn("SKPPING CONFIGURATION FILE "+schemaFile.getPath(),t);
throw new InternalException("Unable to init schema. Offending file is "+schemaFile.getAbsolutePath(),t);
}finally {
if(fis!=null) fis.close();
}