Just to share my experiences: I moved the 'sm' to the bottom of the method, and I found, that it throws a NullPointerException from EhCacheManager, at when the realms are set.
Setting the realms on securityManager uses the cacheManager - the cacheManager should be initialized before this happens. -- View this message in context: http://n2.nabble.com/ModularAuthenticationStrategy-configuration-in-ini-tp2277507p2286833.html Sent from the JSecurity User mailing list archive at Nabble.com.
