Properties file location is WEB-INF/classes/auth.properties
.
I cannot use JSF-specific ways (with ExternalContext) because I need properties file in a service module which doesn't have a dependency on a web-module.
I've already tried
MyService.class.getClassLoader().getResourceAsStream("/WEB-INF/classes/auth.properties");
but it returns null
.
I've also tried to read it with FileInputStream
but it requires the full path what is unacceptable.
Any ideas?