[
https://issues.apache.org/jira/browse/KARAF-6892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236088#comment-17236088
]
Chandre Gowda M R edited comment on KARAF-6892 at 11/22/20, 2:21 AM:
---------------------------------------------------------------------
Thanks for reply and sorry for delay in my response.
I get this error when i include 'cxf-rt-transports-websocket' in POM.xml.
However if i set scope as 'provided' and install it as feature, websocket is
not getting installed. below error is seen during karaf start .
java.io.IOException: No destination available. The CXF websocket transport
needs either the Jetty WebSocket or Atmosphere dependencies to be available
If i try to install atmosphere runtime manually by using following command
bundle:install -s mvn:org.atmosphere/atmosphere-runtime/2.6.1
below error is seen ,
Error executing command: Error installing bundles:
Unable to start bundle mvn:org.atmosphere/atmosphere-runtime/2.6.1:
org.osgi.framework.BundleException: Unable to resolve org.atmosphere.runtime
[268](R 268.0): missing requirement [org.atmosphere.runtime [268](R 268.0)]
osgi.wiring.package; (osgi.wiring.package=javax.jnlp) Unresolved requirements:
[[org.atmosphere.runtime [268](R 268.0)] osgi.wiring.package;
(osgi.wiring.package=javax.jnlp)]
This issue occurs in both 4.2.9 and 4.3. However this was working fine in 4.2.2.
I feel the issue in installing webosocket feature having dependency of
atmosphere-runtime 2.6.1 version .
was (Author: cgowda):
Thanks for reply and sorry for delay. I get this error when i include
'cxf-rt-transports-websocket' in POM.xml. However if i set scope as 'provided'
and install it as feature, websocket is not getting installed. below error is
seen during karaf start .
java.io.IOException: No destination available. The CXF websocket transport
needs either the Jetty WebSocket or Atmosphere dependencies to be available
If i try to install atmosphere runtime manually by using following command
bundle:install -s mvn:org.atmosphere/atmosphere-runtime/2.6.1
below error is seen ,
Error executing command: Error installing bundles:
Unable to start bundle mvn:org.atmosphere/atmosphere-runtime/2.6.1:
org.osgi.framework.BundleException: Unable to resolve org.atmosphere.runtime
[268](R 268.0): missing requirement [org.atmosphere.runtime [268](R 268.0)]
osgi.wiring.package; (osgi.wiring.package=javax.jnlp) Unresolved requirements:
[[org.atmosphere.runtime [268](R 268.0)] osgi.wiring.package;
(osgi.wiring.package=javax.jnlp)]
> Activator start error in bundle org.apache.cxf.cxf-rt-transports-http
> ---------------------------------------------------------------------
>
> Key: KARAF-6892
> URL: https://issues.apache.org/jira/browse/KARAF-6892
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.9
> Environment: Karaf version 4.2.9
> CXF: 3.4.0
> JDK: jdk-10.0.2
> Reporter: Chandre Gowda M R
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> Hi,
> Iam using below features to create Karaf server.
> Karaf version 4.2.9
> CXF: 3.4.0
>
> <feature name='${project.artifactId}' description='${project.name}'<feature
> name='${project.artifactId}' description='${project.name}'
> version='${project.version}'> <details>${project.description}</details>
> <feature version="${karaf.feature.version}" prerequisite="false"
> dependency="false">aries-blueprint</feature> <feature
> version="${karaf.feature.version}" prerequisite="false"
> dependency="false">war</feature>
> <feature>cxf-rs-description-swagger2</feature>
> <feature>cxf-transports-websocket-server</feature>
>
> However when Karaf is started, following error is seen
>
> 2020-10-30T18:44:09,020 | INFO | 9 - org.apache.karaf.features.core - 4.2.9
> | org.apache.cxf.cxf-rt-transports-http/3.4.02020-10-30T18:44:09,020 | INFO
> | 9 - org.apache.karaf.features.core - 4.2.9 |
> org.apache.cxf.cxf-rt-transports-http/3.4.02020-10-30T18:44:09,094 | ERROR |
> 188 - org.apache.karaf.shell.core - 4.2.9 | Exception caught while executing
> commandorg.apache.karaf.features.internal.util.MultiException: Error
> restarting bundles: Activator start error in bundle
> org.apache.cxf.cxf-rt-transports-http [166]. at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1044)
> ~[?:?] 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.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
> ~[?:?] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?] Suppressed:
> org.osgi.framework.BundleException: Activator start error in bundle
> org.apache.cxf.cxf-rt-transports-http [166]. 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:1153)
> ~[?:?] at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1036)
> ~[?:?] 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.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
> ~[?:?] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?] 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
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)