Fix federation provider example to load users file from it's own ClassLoader instead of Thread CL
This commit is contained in:
parent
1a913b21c1
commit
6400e9b978
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public class ClasspathPropertiesFederationFactory extends BasePropertiesFederati
|
|||
}
|
||||
|
||||
protected InputStream getPropertiesFileStream(String path) {
|
||||
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
|
||||
InputStream is = getClass().getClassLoader().getResourceAsStream(path);
|
||||
if (is == null) {
|
||||
throw new IllegalStateException("Path not found for properties file");
|
||||
|
||||
|
|
Loading…
Reference in a new issue