You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Martin Lichtin <li...@yahoo.com.INVALID> on 2015/04/03 17:26:27 UTC

Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how 
one can control the Spring version.
Camel feature "camel-spring" loads Spring with

    <feature version="[3.2,4)">spring</feature>

which will result in loading 3.2.11.RELEASE.

Is there a way to use Spring 4?

- Martin



Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

Posted by lichtin <li...@yahoo.com>.
Hi Willem, just would like to show that what you say is not true.

I can happily first load a Spring 4 version:

   feature:install -v spring/4.1.2.RELEASE_1

and then load Camel:

   feature:repo-add
mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features
   feature:install camel

At this point, however, Camel feature will install the latest Spring 3
version.
And you can verify yourself with

   bundle:requirements camel-spring

to see that it resolved the 'spring' packages with 3.2.11.RELEASE and not
version 4.

For example:

osgi.wiring.package;
(&(osgi.wiring.package=org.springframework.beans)(version>=3.2.0)(!(version>=5.0.0)))
resolved by:
   osgi.wiring.package; org.springframework.beans 3.2.11.RELEASE from
org.apache.servicemix.bundles.spring-beans [83]

I do believe the Camel features file needs to be modified to support Spring
4.

- Martin


Willem.Jiang wrote
> As we doesn’t specify the spring version inside of camel feature, you need
> to choice the spring version yourself inside of Karaf. If you load the
> spring feature 4.0, it should work out of box.
> 
> --  
> Willem Jiang
> 
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang  
> Weibo: 姜宁willem
> 
> 
> 
> On April 3, 2015 at 11:26:55 PM, Martin Lichtin (

> lichtin@.com

> ) wrote:
>> Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how
>> one can control the Spring version.
>> Camel feature "camel-spring" loads Spring with
>>  
>> spring
>>  
>> which will result in loading 3.2.11.RELEASE.
>>  
>> Is there a way to use Spring 4?
>>  
>> - Martin
>>  
>>  
>>





--
View this message in context: http://camel.465427.n5.nabble.com/Karaf-with-Camel-2-15-1-CXF-3-0-4-which-Spring-versions-can-be-used-tp5765283p5765377.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

Posted by alexey-s <al...@mail.ru>.
File etc/org.apache.karaf.features.cfg


Note line





--
View this message in context: http://camel.465427.n5.nabble.com/Karaf-with-Camel-2-15-1-CXF-3-0-4-which-Spring-versions-can-be-used-tp5765283p5765369.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

Posted by lichtin <li...@yahoo.com>.
But don't you restrict the Spring version and exclude version 4 with the
version range?

I'm looking at
https://repository.apache.org/content/repositories/releases/org/apache/camel/karaf/apache-camel/2.15.1/apache-camel-2.15.1-features.xml
and see

    <feature version="[3.2,4)">spring</feature> 

The way I read this, version 4 is not accepted.


Willem.Jiang wrote
> As we doesn’t specify the spring version inside of camel feature, you need
> to choice the spring version yourself inside of Karaf. If you load the
> spring feature 4.0, it should work out of box.
> 
> --  
> Willem Jiang
> 
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang  
> Weibo: 姜宁willem
> 
> 
> 
> On April 3, 2015 at 11:26:55 PM, Martin Lichtin (

> lichtin@.com

> ) wrote:
>> Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how
>> one can control the Spring version.
>> Camel feature "camel-spring" loads Spring with
>>  
>> spring
>>  
>> which will result in loading 3.2.11.RELEASE.
>>  
>> Is there a way to use Spring 4?
>>  
>> - Martin
>>  
>>  
>>





--
View this message in context: http://camel.465427.n5.nabble.com/Karaf-with-Camel-2-15-1-CXF-3-0-4-which-Spring-versions-can-be-used-tp5765283p5765357.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

Posted by Willem Jiang <wi...@gmail.com>.
As we doesn’t specify the spring version inside of camel feature, you need to choice the spring version yourself inside of Karaf. If you load the spring feature 4.0, it should work out of box.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On April 3, 2015 at 11:26:55 PM, Martin Lichtin (lichtin@yahoo.com.invalid) wrote:
> Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how
> one can control the Spring version.
> Camel feature "camel-spring" loads Spring with
>  
> spring
>  
> which will result in loading 3.2.11.RELEASE.
>  
> Is there a way to use Spring 4?
>  
> - Martin
>  
>  
>