Sorry I didn't get your comment.
You mean when I declare ldap.role.ctx I should comment the ldap.user.roles.ctx ?!
If this is what you mean, I already did it.
And also I'm not declaring any of the ldap.role.ctx or ldap.user.roles.ctx empty anymore. But still if I declare both empty, it works.
The problem is only declaring the ldap.role.ctx and not having the ldap.user.roles.ctx, which leads me that the problem is realy in the line I pointed out, the right way for me would be something like this:
String roleContext = this.config.getProperty(USER_ROLES_CTX, Context.ROLE_CTX);