[
https://issues.apache.org/jira/browse/CXF-7792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554721#comment-16554721
]
Andriy Redko edited comment on CXF-7792 at 7/24/18 7:47 PM:
------------------------------------------------------------
Hi [~bambus], it is really hard to follow your stets and troubleshoot the
issue. So I did this, in the Karaf console
{code:java}
la | grep -i cxf{code}
And than uninstalled all CXF 3.1.9 bundles, manually, one by one. Then I did:
{code:java}
feature:repo-add cxf 3.2.5
feature:install cxf-tracing-brave
install -s mvn:org.apache.cxf.samples/jax_ws_tracing_brave_osgi/3.2.5
{code}
All bundles started successfully:
{code:java}
karaf@root>la -s | grep -i cxf
239 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-core
241 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-bindings-soap
242 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-bindings-xml
247 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-management
253 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-transports-http
254 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-transports-http-jetty
255 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-wsdl
256 | Active | 40 | 3.2.5 |
org.apache.cxf.karaf.cxf-karaf-commands
280 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-databinding-jaxb
281 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-frontend-jaxrs
282 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-frontend-jaxws
283 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-frontend-simple
284 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-client
285 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-extension-providers
286 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-extension-search
287 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-json-basic
288 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-service-description
293 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-integration-tracing-brave
294 | Active | 80 | 3.2.5 |
org.apache.cxf.samples.jax_ws_tracing_brave_osgi{code}
And JAX-WS endpoint is available at: [http://localhost:8181/cxf/catalog
Although CXF works, other things may break so I won't recommend doing that
unless you are 100% sure you know what you are doing.
was (Author: reta):
Hi [~bambus], it is really hard to follow your stets and troubleshoot the
issue. So I did this, in the Karaf console
{code:java}
la | grep -i cxf{code}
And than uninstalled all CXF 3.1.9 bundles, manually, one by one. Then I did:
{code:java}
feature:repo-add cxf 3.2.5
feature:install cxf-tracing-brave
install -s mvn:org.apache.cxf.samples/jax_ws_tracing_brave_osgi/3.2.5
{code}
All bundles started successfully:
{code:java}
karaf@root>la -s | grep -i cxf
239 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-core
241 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-bindings-soap
242 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-bindings-xml
247 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-management
253 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-transports-http
254 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-transports-http-jetty
255 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-wsdl
256 | Active | 40 | 3.2.5 |
org.apache.cxf.karaf.cxf-karaf-commands
280 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-databinding-jaxb
281 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-frontend-jaxrs
282 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-frontend-jaxws
283 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-frontend-simple
284 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-client
285 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-extension-providers
286 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-extension-search
287 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-json-basic
288 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-rt-rs-service-description
293 | Active | 40 | 3.2.5 |
org.apache.cxf.cxf-integration-tracing-brave
294 | Active | 80 | 3.2.5 |
org.apache.cxf.samples.jax_ws_tracing_brave_osgi{code}
And JAX-WS endpoint is available at: [http://localhost:8181/cxf/catalog
]Although CXF works, other things may break so I won't recommend doing that
unless you are 100% sure you know what you are doing.
> Distributed Tracing with OpenZipkin Brave and OSGi
> --------------------------------------------------
>
> Key: CXF-7792
> URL: https://issues.apache.org/jira/browse/CXF-7792
> Project: CXF
> Issue Type: Wish
> Components: Tracing Brave
> Affects Versions: 3.2.5
> Reporter: bambus
> Priority: Critical
>
> I have followed your example and brave example for implementing brave in cxf
> based application. After I added brave I could not package it like bundle. I
> always get different errors. Error like: Caused by:
> java.lang.NoClassDefFoundError: zipkin/reporter/Reporter
> Another one: Caused by: java.lang.ClassCastException: Cannot cast
> org.apache.cxf.service.factory.FactoryBeanListenerManager to
> org.apache.cxf.service.factory.FactoryBeanListenerManager
> I am using Service Mix 7.0.1 with Karaf 4.0.9.
> Can you help me how to pack it like as a bundle.
> In this example that thing is missing:
>
> [https://cwiki.apache.org/confluence/display/CXF20DOC/Using+OpenZipkin+Brave#UsingOpenZipkinBrave-SpringXML-Configuration]
> I have configured the blueprint like in the example.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)