English 中文(简体)
Feature fails to start using Karaf 4.2.16 due to unresolved dependencies
原标题:

I try to start a feature using Karaf console:

karaf@karaf()> feature:install my_feature

and get the following error:

Error executing command: 
Unable to resolve root: 
    missing requirement [root] osgi.identity; 
    osgi.identity=my_feature; 
    type=karaf.feature; 
    version="[4.0.0.SNAPSHOT,4.0.0.SNAPSHOT]"; 
    filter:="(&(osgi.identity=my_feature)(type=karaf.feature)(version>=4.0.0.SNAPSHOT)(version<=4.0.0.SNAPSHOT))" 
    [
        caused by: Unable to resolve my_feature/4.0.0.SNAPSHOT: 
        missing requirement [my_feature/4.0.0.SNAPSHOT] osgi.identity; 
        osgi.identity=appliance-branding; 
        type=osgi.bundle; 
        version="[4.0.0.SNAPSHOT,4.0.0.SNAPSHOT]"; 
        resolution:=mandatory 
        [
            caused by: Unable to resolve appliance-branding/4.0.0.SNAPSHOT: 
            missing requirement [appliance-branding/4.0.0.SNAPSHOT] osgi.wiring.package; 
            filter:="(&(osgi.wiring.package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0.0)))"
        ]
    ]

However, I manually added the org.osgi.service.blueprint bundle and having it active:

karaf@karaf()> list
START LEVEL 100 , List Threshold: 50
ID │ State  │ Lvl │ Version            │ Name
───┼────────┼─────┼────────────────────┼────────────────────────────────────────
27 │ Active │ 100 │ 4.2.16             │ Apache Karaf :: OSGi Services :: Event
51 │ Active │  80 │ 1.0.2.201505202024 │ org.osgi:org.osgi.service.blueprint

The question is why Karaf ignores the org.osgi.service.blueprint bundle and can t install my feature and what I can do to install it?

UPD: I used Karaf 2.2.x and I didn t have any issues with it, now I m trying to upgrade from 2.2.x to 4.2.16. I built my application using Java 6 for Karaf 2.2.x and now I m using Java 8 along with Karaf 4.2.16. The source code is absolutely the same, nothing was changed except Java version I m using to build.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签