KEYCLOAK-2820 Mongo doesn't start on wildfly
This commit is contained in:
parent
32d7464e52
commit
5263101bc0
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ public class DefaultMongoConnectionFactoryProvider implements MongoConnectionPro
|
||||||
private Class[] getManagedEntities() throws ClassNotFoundException {
|
private Class[] getManagedEntities() throws ClassNotFoundException {
|
||||||
Class[] entityClasses = new Class[entities.length];
|
Class[] entityClasses = new Class[entities.length];
|
||||||
for (int i = 0; i < entities.length; i++) {
|
for (int i = 0; i < entities.length; i++) {
|
||||||
entityClasses[i] = Thread.currentThread().getContextClassLoader().loadClass(entities[i]);
|
entityClasses[i] = getClass().getClassLoader().loadClass(entities[i]);
|
||||||
}
|
}
|
||||||
return entityClasses;
|
return entityClasses;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue