zoukankan      html  css  js  c++  java
  • Apache的karaf启动报错

    kettle项目中使用到了这个karaf框架

    嵌入到java项目中,启动时会报错

    信息: Lock acquired. Setting startlevel to 100
    九月 28, 2021 1:01:38 下午 org.apache.karaf.main.Main$1 log
    严重: Bundle org.ops4j.pax.url.mvn [4] Error starting mvn:org.ops4j.pax.url/pax-url-aether/2.6.1 (org.osgi.framework.BundleException: 
    Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; 
    (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0))) Unresolved requirements: [[org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package;
     (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))])
     
    org.osgi.framework.BundleException: 
    Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): 
    missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package;
     (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0))) 
    Unresolved requirements: [[org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; 
    (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:748)
    
    九月 28, 2021 1:01:39 下午 org.apache.karaf.main.Main$1 log
    严重: Bundle org.apache.karaf.features.core [11] Error starting mvn:
    org.apache.karaf.features/org.apache.karaf.features.core/4.2.6 
    (org.osgi.framework.BundleException: 
        Unable to resolve org.apache.karaf.features.core [11](R 11.0): 
        missing requirement [org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; 
        (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0))) 
        [caused by: Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): missing requirement 
        [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; 
        (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] 
        Unresolved requirements: [[org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; 
        (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0)))])
    org.osgi.framework.BundleException:
        Unable to resolve org.apache.karaf.features.core [11](R 11.0): 
            missing requirement [org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; 
                (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0))) 
                [caused by: Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): 
            missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; 
                (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] 
                Unresolved requirements: [[org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package;
                (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0)))]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:748)
    
    09-28 13:03:21.498 logback [KarafLifecycleListener Timeout Thread] ERROR o.p.di.osgi.KarafLifecycleListener - 
    The Kettle Karaf Lifecycle Listener failed to execute properly after waiting for 100 seconds. 
    Releasing lifecycle hold, but some services may be unavailable.
    osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] 
        Unresolved requirements: [[org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; 
        (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0)))])

    项目中缺少两个依赖,添加org.slf4j 和 org.ops4j.pax.url.mvn

    不知道怎么解决,把下面两个插件注释掉不会出现这个报错

    作者:海绵般汲取
    出处:https://www.cnblogs.com/gne-hwz/
    版权:本文版权归作者和博客园共有
    转载:欢迎转载,但未经作者同意,必须保留此段声明;必须在文章中给出原文连接;否则必究法律责任
  • 相关阅读:
    MySQL 5.7--------SSL连接最佳实战
    Redis服务搭建及操作
    3.MongoDB基本命令用法
    1.MySQL数据库常用命
    ARM架构安装Kubernetes集群
    更新iManager离线镜像包方法
    iManager for K8S 配置https证书流程步骤
    iManager微服务(云套件)配置https证书流程步骤
    Docker修改IP地址方法
    SuperMap iPortal对接流数据方案
  • 原文地址:https://www.cnblogs.com/gne-hwz/p/15347909.html
Copyright © 2011-2022 走看看