[ 
https://issues.apache.org/jira/browse/CXF-7792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16552674#comment-16552674
 ] 

bambus commented on CXF-7792:
-----------------------------

Deleting files from the system folder won't work. It does not scan the system 
folder for files, but rather uses it as a cache to go looking for specific 
versions. You don't need to add new versions to system either because it will 
download them from the central maven repo it they arn't in system.
If it starts up without a data folder, it will install features & versions 
listed in org.apache.karaf.features.cfg One would expect to be able to delete 
the data folder, change the version in org.apache.karaf.features.cfg & start it 
up, but I tried that and Camel was broken. Unsure why.

I find it easier to deal with it using the management console. Install the 
management console by dropping the following xml file into the deploy folder:
{code:java}
<features name="features-murray" 
xmlns="http://karaf.apache.org/xmlns/features/v1.2.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0 
http://karaf.apache.org/xmlns/features/v1.2.0";> 
<repository>mvn:io.hawt/hawtio-karaf/1.5.7/xml/features</repository> <feature 
name="murray" version="1" install="auto"> <feature>hawtio-offline</feature> 
</feature> </features>{code}
Then point your browser at [http://localhost:8181/hawtio] and login with 
SMX/SMX. From OSGI/Features add the your new feature version with the plus 
button: mvn:org.apache.cxf.karaf/apache-cxf/3.2.5/xml/features It may take some 
time to install, because it downloads it from the net. I found it bounced me 
out of the management console also, but after logging back in I could uninstall 
the old cxf 3.1.9. It again logged me out of the management console, but after 
logging back in I had Camel active and CXF on 3.2.5. No testing though - 
goodness knows what else is broken.

> 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)

Reply via email to