Serge Huber created CXF-8593:
--------------------------------

             Summary: Error when installing CXF OpenAPI v3 under Karaf 4.2.11
                 Key: CXF-8593
                 URL: https://issues.apache.org/jira/browse/CXF-8593
             Project: CXF
          Issue Type: Bug
          Components: OSGi
    Affects Versions: 3.4.4
            Reporter: Serge Huber


I've found an error when using the CXF OpenAPI v3 feature with Karaf 4.2.11.

Here's a reproduction scenario:

{code}
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Karaf (4.2.11)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add cxf
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/RELEASE/xml/features
karaf@root()> feature:install cxf-rs-description-openapi-v3
org.apache.karaf.features.internal.util.MultiException: Error restarting 
bundles:
        Activator start error in bundle org.apache.cxf.cxf-rt-transports-http 
[85].
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1052)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
        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)
        Suppressed: org.osgi.framework.BundleException: Activator start error 
in bundle org.apache.cxf.cxf-rt-transports-http [85].
                at 
org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
                at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
                at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
                at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
                at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
                at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1154)
                at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1044)
                ... 6 more
        Caused by: java.lang.NoClassDefFoundError: 
org/osgi/service/http/HttpService
                at 
org.apache.cxf.transport.http.osgi.HTTPTransportActivator.start(HTTPTransportActivator.java:62)
                at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
                at 
org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
                ... 12 more
        Caused by: java.lang.ClassNotFoundException: 
org.osgi.service.http.HttpService not found by 
org.apache.cxf.cxf-rt-transports-http [85]
                at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
                at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
                at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
                ... 15 more
Error executing command: Error restarting bundles:
        Activator start error in bundle org.apache.cxf.cxf-rt-transports-http 
[85].
{code}





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

Reply via email to