KEYCLOAK-2820 Mongo doesn't start on wildfly

This commit is contained in:
mposolda 2016-04-14 10:41:31 +02:00
parent 32d7464e52
commit 5263101bc0

View file

@ -180,7 +180,7 @@ public class DefaultMongoConnectionFactoryProvider implements MongoConnectionPro
private Class[] getManagedEntities() throws ClassNotFoundException {
Class[] entityClasses = new Class[entities.length];
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;
}