Greetings, we're currently trying to get Shiro to work in our Karaf environment, but we're facing some issues, the most of which are probably classpath-related. Our most recent issue with it comes from the Shiro runtime being unable to locate the class declared inside the shiro.conf file, which is a class inside the same bundle that contains the configuration file. This is probably due to the special classloader used inside OSGI environments and I guess it requires a little paradigm shift from the "usual" way of using the Shiro framework. I've found some advice regarding operating with Shiro in an OSGI environment with Declarative Services or Blueprint ([1] and [2] and [3]), where the general consensus seems to be to just get rid of the static configuration file 'shiro.ini' and then configure the Shiro components programmatically, wrapping them in proper OSGI Components that can be injected inside the bundles requiring Shiro. I would like to know if anyone has ever had this kind of issue and if there's some specific guidance regarding using Shiro with Declarative Services (not Blueprint), as I could not find this kind of information in the official documentation.
Kindest Regards [1]: https://mail-archives.apache.org/mod_mbox/shiro-dev/201605.mbox/%3cca+q76djuyz9capiim+kp5vwvmyem82f5muli16czwntjp1v...@mail.gmail.com%3E [2]: https://groups.google.com/d/msg/ops4j/Uw1sqZlx_uE/npzT1aVgSZEJ [3]: http://shiro-user.582556.n2.nabble.com/Apache-Shiro-in-an-OSGi-Environment-td7578939.html#a7579950 -- View this message in context: http://shiro-user.582556.n2.nabble.com/Shiro-in-a-DS-enabled-Karaf-OSGI-environment-tp7581216.html Sent from the Shiro User mailing list archive at Nabble.com.
