Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 42577200C6E for ; Mon, 8 May 2017 10:09:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 40FC5160BA5; Mon, 8 May 2017 08:09:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8814D160B99 for ; Mon, 8 May 2017 10:09:38 +0200 (CEST) Received: (qmail 82727 invoked by uid 500); 8 May 2017 08:09:32 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 82717 invoked by uid 99); 8 May 2017 08:09:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2017 08:09:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 258EAC002B for ; Mon, 8 May 2017 08:09:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id VgSH2K5MebuS for ; Mon, 8 May 2017 08:09:31 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 08E055F24C for ; Mon, 8 May 2017 08:09:31 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id BDBD43FEE4D98 for ; Mon, 8 May 2017 01:09:30 -0700 (MST) Date: Mon, 8 May 2017 01:09:30 -0700 (MST) From: smunro To: user@karaf.apache.org Message-ID: <1494230970781-4050311.post@n3.nabble.com> Subject: Karaf 4.x & Shiro Support MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 08 May 2017 08:09:39 -0000 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.