Lucian Davitoiu created KARAF-6916:
--------------------------------------

             Summary: javax.management missing requirement when adding a new 
feature
                 Key: KARAF-6916
                 URL: https://issues.apache.org/jira/browse/KARAF-6916
             Project: Karaf
          Issue Type: Bug
          Components: karaf
    Affects Versions: 4.2.10
         Environment: Windows 10
Java SE 11
Karaf 4.2.10
            Reporter: Lucian Davitoiu


Sequence of steps to reproduce:
1. Start with fresh Karaf 4.2.10 (or 4.2.9) instance
2. karaf@root()> feature:repo-add camel 3.4.4
3. karaf@root()> feature:install camel-blueprint camel-sql camel-kafka
4. karaf@root()> feature:install scr

Error after step 4:
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
missing requirement [root] osgi.identity; osgi.identity=bundle; 
type=karaf.feature; version="[4.2.10,4.2.10]"; 
filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.2.10)(version<=4.2.10))"
 [caused by: Unable to resolve bundle/4.2.10: missing requirement 
[bundle/4.2.10] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; 
type=osgi.bundle; version="[4.2.10,4.2.10]"; resolution:=mandatory [caused by: 
Unable to resolve org.apache.karaf.bundle.core/4.2.10: missing requirement 
[org.apache.karaf.bundle.core/4.2.10] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"]]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:394)
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
bundle/4.2.10: missing requirement [bundle/4.2.10] osgi.identity; 
osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; 
version="[4.2.10,4.2.10]"; resolution:=mandatory [caused by: Unable to resolve 
org.apache.karaf.bundle.core/4.2.10: missing requirement 
[org.apache.karaf.bundle.core/4.2.10] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
org.apache.karaf.bundle.core/4.2.10: missing requirement 
[org.apache.karaf.bundle.core/4.2.10] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 13 more
Error executing command: Unable to resolve root: missing requirement [root] 
osgi.identity; osgi.identity=bundle; type=karaf.feature; 
version="[4.2.10,4.2.10]"; 
filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.2.10)(version<=4.2.10))"
 [caused by: Unable to resolve bundle/4.2.10: missing requirement 
[bundle/4.2.10] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; 
type=osgi.bundle; version="[4.2.10,4.2.10]"; resolution:=mandatory [caused by: 
Unable to resolve org.apache.karaf.bundle.core/4.2.10: missing requirement 
[org.apache.karaf.bundle.core/4.2.10] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"]]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to