Looking at the features.xml
<https://github.com/apache/camel/blob/master/platforms/karaf/features/src/main/resources/features.xml#L162>
for camel-aws it seems dependency is already set to true. So if I move to
Karaf-4 then I might not face this issue as the duplicates will be removed ?




On Wed, Jun 29, 2016 at 12:18 PM, Christian Schneider <
ch...@die-schneider.net> wrote:

> I guess the bundle is referenced in the camel feature file. You could
> create your own feature for camel-aws and use the other bundle there.
>
> In karaf 4 this is easier. You simply set dependency=true for all bundles
> that are dependencies of the top level bundle you really want. The karaf
> feature service will then try to remove those duplicates and only install
> one of the possible solutions.
>
> Christian
>
>
> On 29.06.2016 08:04, Debraj Manna wrote:
>
> How do I removed the lower bundle? It seems it is coming from a different
> bundle camel-aws.
>
> On Jun 29, 2016 10:54 AM, "Christian Schneider" <ch...@die-schneider.net>
> wrote:
>
> Yes. Having two versions of a bundle is a problem if both are exposed to
> the same top level bundle. This is what the error you get is telling you.
> Can you try to remove for example the bundle with the lower version and
> check if it works then?
>
> Christian
>
>
> 2016-06-28 15:47 GMT+02:00 Debraj Manna < <subharaj.ma...@gmail.com>
> subharaj.ma...@gmail.com>:
>
>> I checked from web-console:-
>>
>> basecomponent
>> Export-Package - ---
>>
>>
>> camel-aws
>> Export-Package -
>> org.apache.camel.component.aws.cw,version=2.16.1
>> org.apache.camel.component.aws.ddb,version=2.16.1
>> org.apache.camel.component.aws.ec2,version=2.16.1
>> org.apache.camel.component.aws.s3,version=2.16.1
>> org.apache.camel.component.aws.sdb,version=2.16.1
>> org.apache.camel.component.aws.ses,version=2.16.1
>> org.apache.camel.component.aws.sns,version=2.16.1
>> org.apache.camel.component.aws.sqs,version=2.16.1
>> org.apache.camel.component.aws.swf,version=2.16.1
>>
>> But I am having two versions of jackson-annotations in my Karaf (3.0.5) -
>> 2.6.2 and 2.7.1 Is that creating problem?
>>
>> http://sc-qa:8181/system/console/bundles
>>
>>
>>
>> On Tue, Jun 28, 2016 at 6:22 PM, Jean-Baptiste Onofré <j...@nanthrax.net>
>> wrote:
>>
>>> Can you check with package:export if you don't have two bundles
>>> providing the same jackson package (jackson itself and amazon for instance)
>>> ?
>>>
>>> Regards
>>> JB
>>>
>>> On 06/28/2016 01:17 PM, Debraj Manna wrote:
>>>
>>>> Hi
>>>>
>>>> Some time while starting a bundle (basecomponent) I am getting the below
>>>> error. It seems it is because of the two different versions of
>>>> fasterxml.jackson.annotations . basecomponent bundle is using
>>>> fasterxml.jackson.annotations 2.7.4 . basecomponent bundle is also using
>>>> camel-aws which may be using jackson 2.5.0.
>>>>
>>>> Can some one let me know
>>>>
>>>>  1. How can I get rid of this error?
>>>>  2. Why is this error not coming always?
>>>>
>>>>
>>>> smx@root>bundle:start 277
>>>> Error executing command: Error executing command on bundles:
>>>>      Unable to execute command on bundle 277: Uses constraint violation.
>>>> Unable to resolve bundle revision basecomponent [277.0] because it is
>>>> exposed to package 'com.fasterxml.jackson.annotation' from bundle
>>>> revisions com.fasterxml.jackson.core.jackson-annotations [284.0] and
>>>> com.fasterxml.jackson.core.jackson-annotations [125.0] via two
>>>> dependency chains.
>>>>
>>>> Chain 1:
>>>>    basecomponent [277.0]
>>>>      import:
>>>>
>>>> (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.7.0)(!(version>=3.0.0)))
>>>>       |
>>>>      export: osgi.wiring.package=com.fasterxml.jackson.annotation
>>>>    com.fasterxml.jackson.core.jackson-annotations [284.0]
>>>>
>>>> Chain 2:
>>>>    basecomponent [277.0]
>>>>      import: (osgi.wiring.package=com.amazonaws)
>>>>       |
>>>>      export: osgi.wiring.package=com.amazonaws;
>>>> uses:=com.fasterxml.jackson.annotation
>>>>    org.apache.servicemix.bundles.aws-java-sdk [254.0]
>>>>      import:
>>>>
>>>> (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.5.0)(!(version>=3.0.0)))
>>>>       |
>>>>      export: osgi.wiring.package=com.fasterxml.jackson.annotation
>>>>    com.fasterxml.jackson.core.jackson-annotations [125.0]
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbono...@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
> <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>
>
> Open Source Architect
> http://www.talend.com
> <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
>
>
>
>
> --
> Christian Schneiderhttp://www.liquid-reality.de
>
> Open Source Architecthttp://www.talend.com
>
>

Reply via email to