You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Martin Lichtin (JIRA)" <ji...@apache.org> on 2015/04/14 09:37:12 UTC

[jira] [Created] (CAMEL-8631) Allow use of Spring 4 in Karaf environment

Martin Lichtin created CAMEL-8631:
-------------------------------------

             Summary: Allow use of Spring 4 in Karaf environment
                 Key: CAMEL-8631
                 URL: https://issues.apache.org/jira/browse/CAMEL-8631
             Project: Camel
          Issue Type: Improvement
    Affects Versions: 2.15.1
         Environment: Karaf 3.0.3
            Reporter: Martin Lichtin


It's currently not possible to use Camel with Spring version 4.

When first installing Spring 4:

   feature:install -v spring/4.1.2.RELEASE_1

and then installing Camel:

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

The Camel feature file will actually install Spring 3 and not use the version 4 that is already installed.

One can verify this with

   bundle:requirements camel-spring

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

E.g.:

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 believe the Camel features file needs to be modified to support Spring 4. It currently has range restrictions that exclude version 4.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)