缺少要求 - Org.apache.shiro - Osgi Karaf

Missing requirement - Org.apache.shiro - Osgi Karaf

我的一项功能似乎有问题.. 但是,我无法弄清楚是什么导致了这个问题。首先,这是我要安装的功能:

<feature name="wallboard-uccx10">
    <feature>pax-wicket</feature>
    <feature>guava</feature>
    <feature>wallboard-core</feature>
    <feature>commons-net</feature>
    <feature>jackson</feature>
    <bundle>mvn:org.glassfish.hk2/hk2-api/${hk2.version}</bundle>
    <bundle>mvn:org.glassfish.hk2/hk2-utils/${hk2.version}</bundle>
    <bundle>mvn:org.glassfish.hk2/hk2-locator/${hk2.version}</bundle>
    <bundle>mvn:org.javassist/javassist/${javaassist.version}</bundle>
    <bundle>mvn:org.glassfish.hk2/osgi-resource-locator/${osgilocator.version}</bundle>
    <feature>jersey</feature>
    <feature>wallboard-security-uccx10</feature>
    <bundle start-level="85">mvn:dk.netdesign.wallboard/wallboard-uccx-rest-provider/${project.version}</bundle>
</feature>

<feature name="wallboard-security-uccx10">
    <feature>wallboard-security</feature>
    <feature>TDCNetdesign_Finesse_Realm</feature>
    <feature>TDCNetdesign_UCCXAdmin_Realm</feature>  
</feature>

 <feature name="wallboard-security">
    <bundle>mvn:joda-time/joda-time/2.9.6</bundle>
    <bundle>mvn:org.apache.shiro/shiro-core/${shiro.version}</bundle>
    <bundle>mvn:org.apache.shiro/shiro-web/${shiro.version}</bundle>
    <bundle>mvn:dk.netdesign.wallboard/wallboard-shiro/${project.version}</bundle>
</feature>

我已将问题缩小到以下特征: TDCNetdesign_UCCXAdmin_Realm

它会导致以下错误:

error executing commnad: unable to resolve wallboard-shiro/2.55-SNAPSHOT: missing requirement [wallboard-shiro/2.55-SNAPSHOT] osgi.wiring.package; filter:="<&=1.3.0>=2.0.0>

所以它想要一个介于 1.3.0 和 2.0.0 之间的版本。我正在为它提供 1.3.2,应该没问题...

如你所见; shiro 已安装 (1.3.2) 并且它说缺少的包甚至不是​​红色或丢失..

http://prntscr.com/digb42

有趣的是,我 运行 完全相同的命令

feature:install TDCNetdesign_UCCXAdmin_Realm

这次它给了我另一个包。看起来它只是得到了第一个包和 returns 缺少要求,即使它存在于 bundle:list...

在这里你可以看到不同的错误:

http://prntscr.com/digbyu

我是不是漏掉了一些非常明显的东西?

感谢您的宝贵时间!

看起来很像,您的 TDCNetdesign_UCCXAdmin_Realm 不是指 wallboard-security 功能。您应该确保这也已设置,仅创建 "summary" 功能是不够的:

<feature name="wallboard-security-uccx10">
    <feature>wallboard-security</feature>
    <feature>TDCNetdesign_Finesse_Realm</feature>
    <feature>TDCNetdesign_UCCXAdmin_Realm</feature>  
</feature>

而是确保你有更多类似的东西:

 <feature name="TDCNetdesign_UCCXAdmin_Realm">
     <feature>wallboard-security</feature>
     <bundle>...</bundle>
 </feature>