I've been doing some debugging and I found the cause. Instead of configuring the ShiroFilter in my web.xml I had the *Ini*ShiroFilter configured. The IniShiroFilter creates a new SecurityManager from the ini file. This new SecurityManager didn't know about the realm I've added in my EnvironmentLoader, so it didn't have any realms. I replaced it with the ShiroFilter in my web.xml and all seems to be working now with my CdiEnvironmentLoaderListener.
Thank you for your help atomicknight! If anybody with the same issues wants a sample of my configuration, just mail me. atomicknight wrote > > Nothing looks obviously wrong to me - I'm fairly certain that the > SecurityManager should not be overwritten by any other systems. Have you > checked your server logs for exceptions or error messages? It may also be > helpful to attach a debugger to see if the initialization is actually > occurring as you'd expect. > -- View this message in context: http://shiro-user.582556.n2.nabble.com/Shiro-in-CDI-JPA2-JSF2-project-tp7577437p7577466.html Sent from the Shiro User mailing list archive at Nabble.com.
