Hello, >The custom WebEnvironment technique is covered here: http://shiro.apache.org/web.html#Web-Custom%257B%257BWebEnvironment%257D%257DClass
As I understand it, the mentioned technique implies "manual" injection (by new InitialContext().getBean...) of e.g. jpa-based realm into WebEnvironment. This thread: http://shiro-user.582556.n2.nabble.com/Shiro-in-CDI-JPA2-JSF2-project-td7577437.html attempts to introduce CDI-support in a an more elegant(???) way by implementing own EnvironmentLoaderListener. I tried to implement this, but since AuthorizingRealm, extended by JpaRealm in the given solution, has public final method, CDI still fails to initialize with the very same error message mentioned by Lars. Both threads (this one and the http://shiro-user.582556.n2.nabble.com/Shiro-in-CDI-JPA2-JSF2-project-td7577437.html) haven't been commented on since April so I assume everyone sees this topic as solved. My question is this - so what is the good practice to enable CDI-support in shiro nowadays? thanks and kind regards Reinis. -- View this message in context: http://shiro-user.582556.n2.nabble.com/Realm-can-not-be-managed-by-CDI-tp7502061p7577846.html Sent from the Shiro User mailing list archive at Nabble.com.
