Hi Stephen,

I’m using Shiro 1.2.4 on Karaf 4.0.7 in production, and tested on 4.0.8.

I just checked, and I’m not using the Shiro feature, instead Shiro Web and Core 
jars (and any dependencies) are supplied by Karaf’s maven plugin’s feature 
generation. Perhaps I had difficulty with the feature directly, or perhaps I 
didn’t know it existed… I don’t remember, sorry!

Dan.

> On 8 May 2017, at 09:09, smunro <stephen.ross.mu...@gmail.com> wrote:
> 
> Hello,
> 
> I'm looking at using Apache Shiro for an OSGI project, deployed on Karaf
> 4.0.8.
> 
> I tried to install the shiro feature file: feature:repo-add
> mvn:org.apache.shiro/shiro-features/1.2.1/xml/features and it failed with an
> error (see below)
> 
> I've not found much in the way of documentation for Shiro & Karaf or any
> good examples demonstrating it. 
> Firstly, can anyone confirm if they have managed to get shiro running on
> karaf 4.x and which version of shiro was used?
> 
> Secondly, if there is indeed support for 4.x, are they are good examples
> available to demonstrate it's setup. I have seen a couple, but they don't
> seem up to date.
> 
> P.S regarding the error, I've tried both installing the http/war features
> and leaving them. It's the same error regardless.
> 
> [ERROR]
> org.osgi.service.resolver.ResolutionException: Unable to resolve root:
> missing requirement [root] osgi.identity; osgi.identity=shiro-web;
> type=karaf.feature; version="[1.2.1,1.2.1]";
> filter:="(&(osgi.identity=shiro-web)(type=karaf.feature)(version>=1.2.1)(version<=1.2.1))"
> [caused by: Unable to resolve shiro-web/1.2.1: missing requirement
> [shiro-web/1.2.1] osgi.identity; osgi.identity=war; type=karaf.feature;
> version="[2.0.0,4.0.0)"]
>       at
> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[8:org.apache.karaf.features.core:4.0.8]
>       at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[8:org.apache.karaf.features.core:4.0.8]
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_72]
>       at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_72]
>       at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_72]
>       at java.lang.Thread.run(Thread.java:745)[:1.8.0_72]
> 
> Thanks,
> Stephen
> 
> 
> 
> 
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Karaf-4-x-Shiro-Support-tp4050311.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to