Hi Chris,

To be able to use Camel 2.8.0, you have to update to Karaf 2.2.2.

ServiceMix 4.3 now uses Karaf 2.1.3 (and Spring 2.5.6 by default).

ServiceMix 4.4 (which is in preparation) will use Karaf 2.2.2, Camel 2.8.0 and CXF 2.4.3.

You can use a ServiceMix 4.4-SNAPSHOT waiting for the release.

Regards
JB

On 10/10/2011 09:31 PM, Chris Huston wrote:
Hi All,

I am attempting to deploy some camel 2.8.0 routes to service mix. JB Onofre 
posted a note about adding camel 2.8 to Karaf which I figured should fly in 
Service Mix too, right?
        
http://blog.nanthrax.net/2011/06/camel-2-8-0-new-features-for-karafservicemix/

So I did the following with a freshly unzip'd copy of service mix 4.3:
        karaf@root>  features:addurl 
mvn:org.apache.camel.karaf/apache-camel/2.8.0/xml/features
        karaf@root>  features:list | grep 2.8.0
        [uninstalled] [2.8.0 ] camel camel-2.8.0
        [uninstalled] [2.8.0 ] camel-core camel-2.8.0
        [uninstalled] [2.8.0 ] camel-spring camel-2.8.0
        [uninstalled] [2.8.0         ] camel-blueprint camel-2.8.0
        … long list continues

When I try to install 2.8 I get a confusing error:
        karaf@root>  features:install camel 2.8.0
        Error executing command: No feature named 'spring' with version '[3,4)' 
available

But:
        karaf@root>  features:list | grep spring
        [installed  ] [3.0.5.RELEASE ] spring                               
karaf-2.1.3
        [installed  ] [1.2.0         ] spring-dm                            
karaf-2.1.3

I dug into the Karaf code and see that in version 2.1.3, the FeatersServiceImpl just looked for an 
explicit feature version ("3.0.5.RELEASE") and didn't handle version ranges 
("[3,4)"). It also looks like this was fixed back in February under KARAF-473.  Is there 
some straight forward way to either get Camel 2.8 into ServiceMix 4.3.0 or to get Karaf 2.2+ into 
ServiceMix?

Thanks,
-- Chris



--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to