Bhagi Raj Limbu created UNOMI-251:
-------------------------------------

             Summary: Unable to resolve root: missing requirement [root] 
osgi.identity; 
                 Key: UNOMI-251
                 URL: https://issues.apache.org/jira/browse/UNOMI-251
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 1.5.0
         Environment: Windows 10
            Reporter: Bhagi Raj Limbu


I download the latest code from github and run maven clean build a package. 
After successfully package build, I run karaf from command console. However, 
the screen stuck and didn't process further. When I check karaf log, it has 
error logged that has triggered stop process. 
{code:java}
Oct 10, 2019 9:11:17 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Oct 10, 2019 9:11:17 AM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Oct 10, 2019 9:11:17 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock 
C:\javaworkspace\unomi-fusion\package\target\unomi-1.5.0-SNAPSHOT\lock
Oct 10, 2019 9:11:17 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Oct 10, 2019 9:11:17 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
2019-10-10T09:11:18,175 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.shell.cfg
2019-10-10T09:11:18,197 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.jaas.cfg
2019-10-10T09:11:18,216 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
jmx.acl.osgi.compendium.cm.cfg
2019-10-10T09:11:18,225 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.features.cfg
2019-10-10T09:11:18,235 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.management.cfg
2019-10-10T09:11:18,249 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.scope_bundle.cfg
2019-10-10T09:11:18,263 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.features.repos.cfg
2019-10-10T09:11:18,274 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
profile.cfg
2019-10-10T09:11:18,283 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.log.cfg
2019-10-10T09:11:18,289 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.felix.fileinstall-deploy.cfg
2019-10-10T09:11:18,303 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.ops4j.pax.web.cfg
2019-10-10T09:11:18,310 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
jmx.acl.cfg
2019-10-10T09:11:18,322 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
jmx.acl.java.lang.Memory.cfg
2019-10-10T09:11:18,331 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.kar.cfg
2019-10-10T09:11:18,338 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
jmx.acl.org.apache.karaf.config.cfg
2019-10-10T09:11:18,344 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.unomi.cluster.cfg
2019-10-10T09:11:18,351 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.bundle.cfg
2019-10-10T09:11:18,359 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.unomi.plugins.request.cfg
2019-10-10T09:11:18,369 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.cellar.groups.cfg
2019-10-10T09:11:18,376 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.config.cfg
2019-10-10T09:11:18,383 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
jmx.acl.org.apache.karaf.bundle.cfg
2019-10-10T09:11:18,391 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.ops4j.pax.url.war.cfg
2019-10-10T09:11:18,397 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.feature.cfg
2019-10-10T09:11:18,403 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.shell.cfg
2019-10-10T09:11:18,413 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.cxf.osgi.cfg
2019-10-10T09:11:18,418 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.kar.cfg
2019-10-10T09:11:18,424 | INFO  | FelixStartLevel  | fileinstall                
      | 9 - org.apache.felix.fileinstall - 3.6.4 | Creating configuration from 
org.apache.karaf.command.acl.system.cfg
2019-10-10T09:11:18,895 | INFO  | FelixStartLevel  | FeaturesServiceImpl        
      | 10 - org.apache.karaf.features.core - 4.1.7 | Adding features: 
wrap/[0,0.0.0]
2019-10-10T09:11:18,966 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 | Changes to perform:
2019-10-10T09:11:18,966 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 |   Region: root
2019-10-10T09:11:18,967 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 |     Bundles to install:
2019-10-10T09:11:18,967 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 |       
mvn:org.ops4j.pax.url/pax-url-wrap/2.5.4/jar/uber
2019-10-10T09:11:18,968 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 | Installing bundles:
2019-10-10T09:11:18,968 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 |   
mvn:org.ops4j.pax.url/pax-url-wrap/2.5.4/jar/uber
2019-10-10T09:11:18,990 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 | Starting bundles:
2019-10-10T09:11:18,991 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 |   
org.ops4j.pax.url.wrap/2.5.4
2019-10-10T09:11:18,995 | INFO  | features-1-thread-1 | FeaturesServiceImpl     
         | 10 - org.apache.karaf.features.core - 4.1.7 | Done.
2019-10-10T09:11:19,001 | INFO  | FelixStartLevel  | FeaturesServiceImpl        
      | 10 - org.apache.karaf.features.core - 4.1.7 | Adding features: 
instance/[4.1.7,4.1.7], log/[4.1.7,4.1.7], ssh/[4.1.7,4.1.7], 
aries-blueprint/[4.1.7,4.1.7], cxf/[3.1.10,3.1.10], feature/[4.1.7,4.1.7], 
unomi-web-tracker-karaf-kar/[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT], 
jaas/[4.1.7,4.1.7], unomi-kar/[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT], 
deployer/[4.1.7,4.1.7], diagnostic/[4.1.7,4.1.7], bundle/[4.1.7,4.1.7], 
kar/[4.1.7,4.1.7], cellar/[4.1.0,4.1.0], package/[4.1.7,4.1.7], 
war/[4.1.7,4.1.7], unomi-router-karaf-feature/[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT], 
framework/[4.1.7,4.1.7], system/[4.1.7,4.1.7], eventadmin/[4.1.7,4.1.7], 
shell/[4.1.7,4.1.7], management/[4.1.7,4.1.7], service/[4.1.7,4.1.7], 
shell-compat/[4.1.7,4.1.7], config/[4.1.7,4.1.7]
2019-10-10T09:11:20,524 | ERROR | FelixStartLevel  | BootFeaturesInstaller      
      | 10 - org.apache.karaf.features.core - 4.1.7 | Error installing boot 
features
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
missing requirement [root] osgi.identity; 
osgi.identity=unomi-router-karaf-feature; type=karaf.feature; 
version="[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT]"; 
filter:="(&(osgi.identity=unomi-router-karaf-feature)(type=karaf.feature)(version>=1.5.0.SNAPSHOT)(version<=1.5.0.SNAPSHOT))"
 [caused by: Unable to resolve unomi-router-karaf-feature/1.5.0.SNAPSHOT: 
missing requirement [unomi-router-karaf-feature/1.5.0.SNAPSHOT] osgi.identity; 
osgi.identity=unomi-kar; type=karaf.feature [caused by: Unable to resolve 
unomi-kar/1.5.0.SNAPSHOT: missing requirement [unomi-kar/1.5.0.SNAPSHOT] 
osgi.identity; osgi.identity=org.apache.unomi.plugins-request; 
type=osgi.bundle; version="[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT]"; 
resolution:=mandatory [caused by: Unable to resolve 
org.apache.unomi.plugins-request/1.5.0.SNAPSHOT: missing requirement 
[org.apache.unomi.plugins-request/1.5.0.SNAPSHOT] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.annotation.meta)"]]]
        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:350) ~[?:?]
        at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:291) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1248)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$1(FeaturesServiceImpl.java:1147)
 ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
unomi-router-karaf-feature/1.5.0.SNAPSHOT: missing requirement 
[unomi-router-karaf-feature/1.5.0.SNAPSHOT] osgi.identity; 
osgi.identity=unomi-kar; type=karaf.feature [caused by: Unable to resolve 
unomi-kar/1.5.0.SNAPSHOT: missing requirement [unomi-kar/1.5.0.SNAPSHOT] 
osgi.identity; osgi.identity=org.apache.unomi.plugins-request; 
type=osgi.bundle; version="[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT]"; 
resolution:=mandatory [caused by: Unable to resolve 
org.apache.unomi.plugins-request/1.5.0.SNAPSHOT: missing requirement 
[org.apache.unomi.plugins-request/1.5.0.SNAPSHOT] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.annotation.meta)"]]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
 ~[?:?]
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
unomi-kar/1.5.0.SNAPSHOT: missing requirement [unomi-kar/1.5.0.SNAPSHOT] 
osgi.identity; osgi.identity=org.apache.unomi.plugins-request; 
type=osgi.bundle; version="[1.5.0.SNAPSHOT,1.5.0.SNAPSHOT]"; 
resolution:=mandatory [caused by: Unable to resolve 
org.apache.unomi.plugins-request/1.5.0.SNAPSHOT: missing requirement 
[org.apache.unomi.plugins-request/1.5.0.SNAPSHOT] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.annotation.meta)"]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
 ~[?:?]
        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.unomi.plugins-request/1.5.0.SNAPSHOT: missing requirement 
[org.apache.unomi.plugins-request/1.5.0.SNAPSHOT] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.annotation.meta)"
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
 ~[?:?]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
 ~[?:?]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
 ~[?:?]
        ... 12 more

{code}
I wonder if you have encounter similar expection.

 

Regards and Metta,

 

 



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

Reply via email to