[ https://issues.apache.org/jira/browse/CXF-7792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16547035#comment-16547035 ]
Andriy Redko edited comment on CXF-7792 at 7/17/18 7:46 PM: ------------------------------------------------------------ Hi [~bambus], I have just finished the tests with Apache Karaf 4.1.5: {code:java} feature:repo-add cxf 3.2.5 feature:install cxf-jaxrs feature:install cxf-jsr-json feature:install cxf-tracing-brave install -s mvn:org.apache.cxf.samples/jax_rs_tracing_brave_osgi/3.2.5{code} Calling the service endpoint: {code:java} curl http://localhost:8181/cxf/catalog{code} Apache Karaf logs: {code:java} -------------------------------------- 2018-07-17 15:38:39,476 | INFO | tp1804910985-122 | LoggingInInterceptor | 56 - org.apache.cxf.cxf-core - 3.2.5 | Inbound Message ---------------------------- ID: 2 Address: http://localhost:8181/cxf/catalog Http-Method: GET Content-Type: Headers: {Accept=[*/*], Content-Type=[null], Host=[localhost:8181], User-Agent=[curl/7.54.0]} -------------------------------------- 2018-07-17 15:38:39,483 | INFO | pool-49-thread-2 | Tracer | 110 - io.zipkin.brave - 4.6.0 | {"traceId":"908ce90e5866fa6e","id":"8878b451e53348d6","name":"looking for books","parentId":"908ce90e5866fa6e","timestamp":1531856319479145,"duration":2152,"binaryAnnotations":[{"key":"lc","value":"","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}}]} 2018-07-17 15:38:39,485 | INFO | tp1804910985-127 | Tracer | 110 - io.zipkin.brave - 4.6.0 | {"traceId":"908ce90e5866fa6e","id":"908ce90e5866fa6e","name":"get /cxf/catalog","timestamp":1531856319477649,"duration":6099,"annotations":[{"timestamp":1531856319477649,"value":"sr","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}},{"timestamp":1531856319483748,"value":"ss","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}}],"binaryAnnotations":[{"key":"http.path","value":"/cxf/catalog","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}}]} 2018-07-17 15:38:39,486 | INFO | tp1804910985-127 | LoggingOutInterceptor | 56 - org.apache.cxf.cxf-core - 3.2.5 | Outbound Message --------------------------- ID: 2 Response-Code: 200 Content-Type: application/json Headers: {Content-Type=[application/json], Date=[Tue, 17 Jul 2018 19:38:39 GMT]} Payload: [] --------------------------------------{code} Exactly the same steps work over Apache Kara 4.0.10. Thanks. was (Author: reta): Hi [~bambus], I have just did the tests with Apache Karaf 4.1.5: {code:java} feature:repo-add cxf 3.2.5 feature:install cxf-jaxrs feature:install cxf-jsr-json feature:install cxf-tracing-brave install -s mvn:org.apache.cxf.samples/jax_rs_tracing_brave_osgi/3.2.5{code} Calling the service endpoint: {code:java} curl http://localhost:8181/cxf/catalog{code} Apache Karaf logs: {code:java} -------------------------------------- 2018-07-17 15:38:39,476 | INFO | tp1804910985-122 | LoggingInInterceptor | 56 - org.apache.cxf.cxf-core - 3.2.5 | Inbound Message ---------------------------- ID: 2 Address: http://localhost:8181/cxf/catalog Http-Method: GET Content-Type: Headers: {Accept=[*/*], Content-Type=[null], Host=[localhost:8181], User-Agent=[curl/7.54.0]} -------------------------------------- 2018-07-17 15:38:39,483 | INFO | pool-49-thread-2 | Tracer | 110 - io.zipkin.brave - 4.6.0 | {"traceId":"908ce90e5866fa6e","id":"8878b451e53348d6","name":"looking for books","parentId":"908ce90e5866fa6e","timestamp":1531856319479145,"duration":2152,"binaryAnnotations":[{"key":"lc","value":"","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}}]} 2018-07-17 15:38:39,485 | INFO | tp1804910985-127 | Tracer | 110 - io.zipkin.brave - 4.6.0 | {"traceId":"908ce90e5866fa6e","id":"908ce90e5866fa6e","name":"get /cxf/catalog","timestamp":1531856319477649,"duration":6099,"annotations":[{"timestamp":1531856319477649,"value":"sr","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}},{"timestamp":1531856319483748,"value":"ss","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}}],"binaryAnnotations":[{"key":"http.path","value":"/cxf/catalog","endpoint":{"serviceName":"catalog-service","ipv4":"10.110.118.61"}}]} 2018-07-17 15:38:39,486 | INFO | tp1804910985-127 | LoggingOutInterceptor | 56 - org.apache.cxf.cxf-core - 3.2.5 | Outbound Message --------------------------- ID: 2 Response-Code: 200 Content-Type: application/json Headers: {Content-Type=[application/json], Date=[Tue, 17 Jul 2018 19:38:39 GMT]} Payload: [] --------------------------------------{code} Exactly the same steps work over Apache Kara 4.0.10. Thanks. > 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: Major > > 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.7. > 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)