Reputation: 13
I am working to run Java Project on Karaf.
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity;
osgi.identity=karcin-insight;
type=karaf.feature;
version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]";
filter:="(&(osgi.identity=karcin-insight)(type=karaf.feature)(version>=1.0.0.SNAPSHOT)(version<=1.0.0.SNAPSHOT))" [caused by: Unable to resolve karcin-insight/1.0.0.SNAPSHOT: missing requirement [karcin-insight/1.0.0.SNAPSHOT] osgi.identity;
osgi.identity=karcin-insight-bundles;
type=karaf.feature [caused by: Unable to resolve karcin-insight-bundles/1.0.0.SNAPSHOT: missing requirement [karcin-insight-bundles/1.0.0.SNAPSHOT] osgi.identity;
osgi.identity=karcin-insight-rest; type=osgi.bundle; version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve karcin-insight-rest/1.0.0.SNAPSHOT: missing requirement [karcin-insight-rest/1.0.0.SNAPSHOT] osgi.wiring.package;
filter:="(osgi.wiring.package=tr.com.karcin.license)"]]]
How can i fix.?
Upvotes: 0
Views: 1682
Reputation: 6237
I agree that these error messages are not that easy to read. There are too many [...]
parentheses. But with little practice, it can be reformatted (in mind) to:
Unable to resolve root:
missing requirement [root]
- osgi.identity;
- osgi.identity=karcin-insight;
- type=karaf.feature;
- version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]";
- filter:="(&(osgi.identity=karcin-insight)(type=karaf.feature)(version>=1.0.0.SNAPSHOT)(version<=1.0.0.SNAPSHOT))"
[caused by:
Unable to resolve karcin-insight/1.0.0.SNAPSHOT:
missing requirement [karcin-insight/1.0.0.SNAPSHOT]
- osgi.identity;
- osgi.identity=karcin-insight-bundles;
- type=karaf.feature
[caused by:
Unable to resolve karcin-insight-bundles/1.0.0.SNAPSHOT:
missing requirement [karcin-insight-bundles/1.0.0.SNAPSHOT]
- osgi.identity;
- osgi.identity=karcin-insight-rest;
- type=osgi.bundle;
- version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]";
- resolution:=mandatory
[caused by:
Unable to resolve karcin-insight-rest/1.0.0.SNAPSHOT:
missing requirement [karcin-insight-rest/1.0.0.SNAPSHOT]
- osgi.wiring.package;
- filter:="(osgi.wiring.package=tr.com.karcin.license)"
]
]
]
So you have a chain of resolution problems:
root
featurekarcin-insight/1.0.0.SNAPSHOT
featurekarcin-insight-bundles/1.0.0.SNAPSHOT
featurekarcin-insight-rest/1.0.0.SNAPSHOT
bundle (because of osgi.wiring.package
namespace)So what is missing is that karcin-insight-rest
bundle has Import-Package: tr.com.karcin.license
, but you didn't install any bundle that has the same package in Export-Package
.
Upvotes: 1