You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Arnaud Deprez <ar...@gmail.com> on 2016/05/09 12:53:36 UTC

Karaf 4.0.5 cannot resolve some OSGi services

Hi folks,

Just tried the new karaf release and I met this issue when I install my
bundles that are using blueprint as DI engine:
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=enterprise-contract; type=karaf.feature;
version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
[caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
[enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
effective:=active;
filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
[caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
osgi.service; effective:=active;
filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]

However I can see my service with the following command:
karaf@root(feature)> service:list org.apache.camel.Component
[org.apache.camel.Component]
----------------------------
 osgi.service.blueprint.compname = hazelcastComponent
 service.bundleid = 290
 service.id = 292
 service.scope = bundle
 type = hazelcast
Provided by :
 Bundle 290

My blueprint configuration is :
<reference id="hazelcast" interface="org.apache.camel.Component"
filter="(type=hazelcast)"/>

My features works in 4.0.4 so I don't know what is broken here.
Any help is welcome.

Regards,
-- 
Arnaud Deprez
Software Engineer
Phone: +32 497 23 30 44
Linked'In: https://www.linkedin.com/in/deprezarnaud
Github: https://github.com/arnaud-deprez

Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Arnaud Deprez <ar...@gmail.com>.
Hi Christian,

I didn't know there is a new feature resolver between 4.0.4 and 4.0.5.
I couldn't find issues here:
https://issues.apache.org/jira/browse/KARAF-4497?jql=project%20%3D%20KARAF%20AND%20fixVersion%20%3D%204.0.5
related to this change.

I'll try your suggested solution and keep you inform.

Regards,

On Thu, May 12, 2016 at 9:40 PM Christian Schneider <ch...@die-schneider.net>
wrote:

> I think the issue is because of the new feature resolver. When you
> reference a service this results in a service requirement in your bundle
> Manifest. The karaf 4 feature resolver will check these requirements and
> only allow installation if it finds a bundle that has a matching capability
> in its manifest. Apparently camel does not provide the capability. So the
> resolve fails.
>
> You can disable this behaviour in the config.
> org.apache.karaf.features.cfg
> serviceRequirements=disabled
>
> Christian
>
> 2016-05-12 19:35 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:
>
>> Hi again,
>>
>> Sorry to insist but according to me it's a critical issue in karaf 4.0.5.
>>
>> So I have few questions:
>> Anyone else meets this issue ?
>> Am I the only one who is using aries blueprint on karaf 4.0.5 ?
>> Would you recommend me to not use blueprint anymore ? If so which
>> solution would you recommend ?
>> I know that there are some discussions about the more statical way of
>> working of blueprint vs more dynamic with some CDI implementations (scr,
>> what else ?)
>>
>> Regards,
>>
>> On Mon, May 9, 2016 at 4:40 PM Arnaud Deprez <ar...@gmail.com>
>> wrote:
>>
>>> Yep, I'm aware of this :-)
>>>
>>> On Mon, May 9, 2016 at 4:37 PM Morgan Hautman <mo...@gmail.com>
>>> wrote:
>>>
>>>> There was indeed a breaking change in Aries blueprint core for this
>>>> release during the vote but it was normally fixed by JB and he made a new
>>>> release vote including the fix... Let's wait till he checks his mails. :)
>>>>
>>>>
>>>> On 2016-05-09 15:29, Arnaud Deprez wrote:
>>>>
>>>> Nope, as you could see in my previous mail, I can see the service when
>>>> I execute the command: service:list org.apache.camel.Component.
>>>> Moreover, when I install the exact same features in karaf 4.0.4, it
>>>> just works.
>>>>
>>>> It also happens with other OSGi services, so the problem isn't related
>>>> to hazelcast.
>>>> According to me, it smells a breaking change in aries blueprint but I'm
>>>> not sure right now.
>>>>
>>>> Rgds,
>>>>
>>>> On Mon, May 9, 2016 at 3:12 PM Morgan Hautman <mo...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Arnaud,
>>>>>
>>>>> Didn't you forgot to install camel-hazelcast feature?
>>>>>
>>>>> Regards,
>>>>> Morgan
>>>>>
>>>>> 2016-05-09 14:53 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:
>>>>>
>>>>>> Hi folks,
>>>>>>
>>>>>> Just tried the new karaf release and I met this issue when I install
>>>>>> my bundles that are using blueprint as DI engine:
>>>>>> Error executing command: Unable to resolve root: missing requirement
>>>>>> [root] osgi.identity; osgi.identity=enterprise-contract;
>>>>>> type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>>>>>> filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
>>>>>> [caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
>>>>>> requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
>>>>>> osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
>>>>>> resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
>>>>>> [enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
>>>>>> osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
>>>>>> version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
>>>>>> by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
>>>>>> requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
>>>>>> effective:=active;
>>>>>> filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
>>>>>> [caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
>>>>>> missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
>>>>>> osgi.service; effective:=active;
>>>>>> filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>>>>>>
>>>>>> However I can see my service with the following command:
>>>>>> karaf@root(feature)> service:list org.apache.camel.Component
>>>>>> [org.apache.camel.Component]
>>>>>> ----------------------------
>>>>>>  osgi.service.blueprint.compname = hazelcastComponent
>>>>>>  service.bundleid = 290
>>>>>>  service.id = 292
>>>>>>  service.scope = bundle
>>>>>>  type = hazelcast
>>>>>> Provided by :
>>>>>>  Bundle 290
>>>>>>
>>>>>> My blueprint configuration is :
>>>>>> <reference id="hazelcast" interface="org.apache.camel.Component"
>>>>>> filter="(type=hazelcast)"/>
>>>>>>
>>>>>> My features works in 4.0.4 so I don't know what is broken here.
>>>>>> Any help is welcome.
>>>>>>
>>>>>> Regards,
>>>>>> --
>>>>>> Arnaud Deprez
>>>>>> Software Engineer
>>>>>> Phone: +32 497 23 30 44 <%2B32%20497%2023%2030%2044>
>>>>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>>>>> Github: https://github.com/arnaud-deprez
>>>>>>
>>>>>
>>>>> --
>>>> Arnaud Deprez
>>>> Software Engineer
>>>> Phone: +32 497 23 30 44
>>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>>> Github: https://github.com/arnaud-deprez
>>>>
>>>>
>>>> --
>>> Arnaud Deprez
>>> Software Engineer
>>> Phone: +32 497 23 30 44
>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>> Github: https://github.com/arnaud-deprez
>>>
>> --
>> Arnaud Deprez
>> Software Engineer
>> Phone: +32 497 23 30 44
>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>> Github: https://github.com/arnaud-deprez
>>
>
>
>
> --
> --
> 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>
>
-- 
Arnaud Deprez
Software Engineer
Phone: +32 497 23 30 44
Linked'In: https://www.linkedin.com/in/deprezarnaud
Github: https://github.com/arnaud-deprez

Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Christian Schneider <ch...@die-schneider.net>.
I think the issue is because of the new feature resolver. When you
reference a service this results in a service requirement in your bundle
Manifest. The karaf 4 feature resolver will check these requirements and
only allow installation if it finds a bundle that has a matching capability
in its manifest. Apparently camel does not provide the capability. So the
resolve fails.

You can disable this behaviour in the config.
org.apache.karaf.features.cfg
serviceRequirements=disabled

Christian

2016-05-12 19:35 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:

> Hi again,
>
> Sorry to insist but according to me it's a critical issue in karaf 4.0.5.
>
> So I have few questions:
> Anyone else meets this issue ?
> Am I the only one who is using aries blueprint on karaf 4.0.5 ?
> Would you recommend me to not use blueprint anymore ? If so which solution
> would you recommend ?
> I know that there are some discussions about the more statical way of
> working of blueprint vs more dynamic with some CDI implementations (scr,
> what else ?)
>
> Regards,
>
> On Mon, May 9, 2016 at 4:40 PM Arnaud Deprez <ar...@gmail.com>
> wrote:
>
>> Yep, I'm aware of this :-)
>>
>> On Mon, May 9, 2016 at 4:37 PM Morgan Hautman <mo...@gmail.com>
>> wrote:
>>
>>> There was indeed a breaking change in Aries blueprint core for this
>>> release during the vote but it was normally fixed by JB and he made a new
>>> release vote including the fix... Let's wait till he checks his mails. :)
>>>
>>>
>>> On 2016-05-09 15:29, Arnaud Deprez wrote:
>>>
>>> Nope, as you could see in my previous mail, I can see the service when I
>>> execute the command: service:list org.apache.camel.Component.
>>> Moreover, when I install the exact same features in karaf 4.0.4, it just
>>> works.
>>>
>>> It also happens with other OSGi services, so the problem isn't related
>>> to hazelcast.
>>> According to me, it smells a breaking change in aries blueprint but I'm
>>> not sure right now.
>>>
>>> Rgds,
>>>
>>> On Mon, May 9, 2016 at 3:12 PM Morgan Hautman <mo...@gmail.com>
>>> wrote:
>>>
>>>> Hi Arnaud,
>>>>
>>>> Didn't you forgot to install camel-hazelcast feature?
>>>>
>>>> Regards,
>>>> Morgan
>>>>
>>>> 2016-05-09 14:53 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:
>>>>
>>>>> Hi folks,
>>>>>
>>>>> Just tried the new karaf release and I met this issue when I install
>>>>> my bundles that are using blueprint as DI engine:
>>>>> Error executing command: Unable to resolve root: missing requirement
>>>>> [root] osgi.identity; osgi.identity=enterprise-contract;
>>>>> type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>>>>> filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
>>>>> [caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
>>>>> requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
>>>>> osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
>>>>> resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
>>>>> [enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
>>>>> osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
>>>>> version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
>>>>> by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
>>>>> requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
>>>>> effective:=active;
>>>>> filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
>>>>> [caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
>>>>> missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
>>>>> osgi.service; effective:=active;
>>>>> filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>>>>>
>>>>> However I can see my service with the following command:
>>>>> karaf@root(feature)> service:list org.apache.camel.Component
>>>>> [org.apache.camel.Component]
>>>>> ----------------------------
>>>>>  osgi.service.blueprint.compname = hazelcastComponent
>>>>>  service.bundleid = 290
>>>>>  service.id = 292
>>>>>  service.scope = bundle
>>>>>  type = hazelcast
>>>>> Provided by :
>>>>>  Bundle 290
>>>>>
>>>>> My blueprint configuration is :
>>>>> <reference id="hazelcast" interface="org.apache.camel.Component"
>>>>> filter="(type=hazelcast)"/>
>>>>>
>>>>> My features works in 4.0.4 so I don't know what is broken here.
>>>>> Any help is welcome.
>>>>>
>>>>> Regards,
>>>>> --
>>>>> Arnaud Deprez
>>>>> Software Engineer
>>>>> Phone: +32 497 23 30 44 <%2B32%20497%2023%2030%2044>
>>>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>>>> Github: https://github.com/arnaud-deprez
>>>>>
>>>>
>>>> --
>>> Arnaud Deprez
>>> Software Engineer
>>> Phone: +32 497 23 30 44
>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>> Github: https://github.com/arnaud-deprez
>>>
>>>
>>> --
>> Arnaud Deprez
>> Software Engineer
>> Phone: +32 497 23 30 44
>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>> Github: https://github.com/arnaud-deprez
>>
> --
> Arnaud Deprez
> Software Engineer
> Phone: +32 497 23 30 44
> Linked'In: https://www.linkedin.com/in/deprezarnaud
> Github: https://github.com/arnaud-deprez
>



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

Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Arnaud Deprez <ar...@gmail.com>.
Hi again,

Sorry to insist but according to me it's a critical issue in karaf 4.0.5.

So I have few questions:
Anyone else meets this issue ?
Am I the only one who is using aries blueprint on karaf 4.0.5 ?
Would you recommend me to not use blueprint anymore ? If so which solution
would you recommend ?
I know that there are some discussions about the more statical way of
working of blueprint vs more dynamic with some CDI implementations (scr,
what else ?)

Regards,

On Mon, May 9, 2016 at 4:40 PM Arnaud Deprez <ar...@gmail.com> wrote:

> Yep, I'm aware of this :-)
>
> On Mon, May 9, 2016 at 4:37 PM Morgan Hautman <mo...@gmail.com>
> wrote:
>
>> There was indeed a breaking change in Aries blueprint core for this
>> release during the vote but it was normally fixed by JB and he made a new
>> release vote including the fix... Let's wait till he checks his mails. :)
>>
>>
>> On 2016-05-09 15:29, Arnaud Deprez wrote:
>>
>> Nope, as you could see in my previous mail, I can see the service when I
>> execute the command: service:list org.apache.camel.Component.
>> Moreover, when I install the exact same features in karaf 4.0.4, it just
>> works.
>>
>> It also happens with other OSGi services, so the problem isn't related to
>> hazelcast.
>> According to me, it smells a breaking change in aries blueprint but I'm
>> not sure right now.
>>
>> Rgds,
>>
>> On Mon, May 9, 2016 at 3:12 PM Morgan Hautman <mo...@gmail.com>
>> wrote:
>>
>>> Hi Arnaud,
>>>
>>> Didn't you forgot to install camel-hazelcast feature?
>>>
>>> Regards,
>>> Morgan
>>>
>>> 2016-05-09 14:53 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:
>>>
>>>> Hi folks,
>>>>
>>>> Just tried the new karaf release and I met this issue when I install my
>>>> bundles that are using blueprint as DI engine:
>>>> Error executing command: Unable to resolve root: missing requirement
>>>> [root] osgi.identity; osgi.identity=enterprise-contract;
>>>> type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>>>> filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
>>>> [caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
>>>> requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
>>>> osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
>>>> resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
>>>> [enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
>>>> osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
>>>> version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
>>>> by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
>>>> requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
>>>> effective:=active;
>>>> filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
>>>> [caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
>>>> missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
>>>> osgi.service; effective:=active;
>>>> filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>>>>
>>>> However I can see my service with the following command:
>>>> karaf@root(feature)> service:list org.apache.camel.Component
>>>> [org.apache.camel.Component]
>>>> ----------------------------
>>>>  osgi.service.blueprint.compname = hazelcastComponent
>>>>  service.bundleid = 290
>>>>  service.id = 292
>>>>  service.scope = bundle
>>>>  type = hazelcast
>>>> Provided by :
>>>>  Bundle 290
>>>>
>>>> My blueprint configuration is :
>>>> <reference id="hazelcast" interface="org.apache.camel.Component"
>>>> filter="(type=hazelcast)"/>
>>>>
>>>> My features works in 4.0.4 so I don't know what is broken here.
>>>> Any help is welcome.
>>>>
>>>> Regards,
>>>> --
>>>> Arnaud Deprez
>>>> Software Engineer
>>>> Phone: +32 497 23 30 44 <%2B32%20497%2023%2030%2044>
>>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>>> Github: https://github.com/arnaud-deprez
>>>>
>>>
>>> --
>> Arnaud Deprez
>> Software Engineer
>> Phone: +32 497 23 30 44
>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>> Github: https://github.com/arnaud-deprez
>>
>>
>> --
> Arnaud Deprez
> Software Engineer
> Phone: +32 497 23 30 44
> Linked'In: https://www.linkedin.com/in/deprezarnaud
> Github: https://github.com/arnaud-deprez
>
-- 
Arnaud Deprez
Software Engineer
Phone: +32 497 23 30 44
Linked'In: https://www.linkedin.com/in/deprezarnaud
Github: https://github.com/arnaud-deprez

Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Arnaud Deprez <ar...@gmail.com>.
Yep, I'm aware of this :-)

On Mon, May 9, 2016 at 4:37 PM Morgan Hautman <mo...@gmail.com>
wrote:

> There was indeed a breaking change in Aries blueprint core for this
> release during the vote but it was normally fixed by JB and he made a new
> release vote including the fix... Let's wait till he checks his mails. :)
>
>
> On 2016-05-09 15:29, Arnaud Deprez wrote:
>
> Nope, as you could see in my previous mail, I can see the service when I
> execute the command: service:list org.apache.camel.Component.
> Moreover, when I install the exact same features in karaf 4.0.4, it just
> works.
>
> It also happens with other OSGi services, so the problem isn't related to
> hazelcast.
> According to me, it smells a breaking change in aries blueprint but I'm
> not sure right now.
>
> Rgds,
>
> On Mon, May 9, 2016 at 3:12 PM Morgan Hautman <mo...@gmail.com>
> wrote:
>
>> Hi Arnaud,
>>
>> Didn't you forgot to install camel-hazelcast feature?
>>
>> Regards,
>> Morgan
>>
>> 2016-05-09 14:53 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:
>>
>>> Hi folks,
>>>
>>> Just tried the new karaf release and I met this issue when I install my
>>> bundles that are using blueprint as DI engine:
>>> Error executing command: Unable to resolve root: missing requirement
>>> [root] osgi.identity; osgi.identity=enterprise-contract;
>>> type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>>> filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
>>> [caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
>>> requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
>>> osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
>>> resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
>>> [enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
>>> osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
>>> version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
>>> by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
>>> requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
>>> effective:=active;
>>> filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
>>> [caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
>>> missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
>>> osgi.service; effective:=active;
>>> filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>>>
>>> However I can see my service with the following command:
>>> karaf@root(feature)> service:list org.apache.camel.Component
>>> [org.apache.camel.Component]
>>> ----------------------------
>>>  osgi.service.blueprint.compname = hazelcastComponent
>>>  service.bundleid = 290
>>>  service.id = 292
>>>  service.scope = bundle
>>>  type = hazelcast
>>> Provided by :
>>>  Bundle 290
>>>
>>> My blueprint configuration is :
>>> <reference id="hazelcast" interface="org.apache.camel.Component"
>>> filter="(type=hazelcast)"/>
>>>
>>> My features works in 4.0.4 so I don't know what is broken here.
>>> Any help is welcome.
>>>
>>> Regards,
>>> --
>>> Arnaud Deprez
>>> Software Engineer
>>> Phone: +32 497 23 30 44 <%2B32%20497%2023%2030%2044>
>>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>>> Github: https://github.com/arnaud-deprez
>>>
>>
>> --
> Arnaud Deprez
> Software Engineer
> Phone: +32 497 23 30 44
> Linked'In: https://www.linkedin.com/in/deprezarnaud
> Github: https://github.com/arnaud-deprez
>
>
> --
Arnaud Deprez
Software Engineer
Phone: +32 497 23 30 44
Linked'In: https://www.linkedin.com/in/deprezarnaud
Github: https://github.com/arnaud-deprez

Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Morgan Hautman <mo...@gmail.com>.
There was indeed a breaking change in Aries blueprint core for this 
release during the vote but it was normally fixed by JB and he made a 
new release vote including the fix... Let's wait till he checks his 
mails. :)

On 2016-05-09 15:29, Arnaud Deprez wrote:
> Nope, as you could see in my previous mail, I can see the service when 
> I execute the command: service:list org.apache.camel.Component.
> Moreover, when I install the exact same features in karaf 4.0.4, it 
> just works.
>
> It also happens with other OSGi services, so the problem isn't related 
> to hazelcast.
> According to me, it smells a breaking change in aries blueprint but 
> I'm not sure right now.
>
> Rgds,
>
> On Mon, May 9, 2016 at 3:12 PM Morgan Hautman 
> <morgan.hautman@gmail.com <ma...@gmail.com>> wrote:
>
>     Hi Arnaud,
>
>     Didn't you forgot to install camel-hazelcast feature?
>
>     Regards,
>     Morgan
>
>     2016-05-09 14:53 GMT+02:00 Arnaud Deprez <arnaudeprez@gmail.com
>     <ma...@gmail.com>>:
>
>         Hi folks,
>
>         Just tried the new karaf release and I met this issue when I
>         install my bundles that are using blueprint as DI engine:
>         Error executing command: Unable to resolve root: missing
>         requirement [root] osgi.identity;
>         osgi.identity=enterprise-contract; type=karaf.feature;
>         version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>         filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
>         [caused by: Unable to resolve
>         enterprise-contract/1.4.0.SNAPSHOT: missing requirement
>         [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
>         osgi.identity=enterprise-customer; type=karaf.feature [caused
>         by: Unable to resolve enterprise-customer/1.4.0.SNAPSHOT:
>         missing requirement [enterprise-customer/1.4.0.SNAPSHOT]
>         osgi.identity; osgi.identity=be.lampiris.api.customer-rest;
>         type=osgi.bundle; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>         resolution:=mandatory [caused by: Unable to resolve
>         be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
>         requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT]
>         osgi.service; effective:=active;
>         filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
>         [caused by: Unable to resolve
>         be.lampiris.api.customer-impl/1.4.0.SNAPSHOT: missing
>         requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
>         osgi.service; effective:=active;
>         filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>
>         However I can see my service with the following command:
>         karaf@root(feature)> service:list org.apache.camel.Component
>         [org.apache.camel.Component]
>         ----------------------------
>          osgi.service.blueprint.compname = hazelcastComponent
>          service.bundleid = 290
>         service.id <http://service.id> = 292
>          service.scope = bundle
>          type = hazelcast
>         Provided by :
>          Bundle 290
>
>         My blueprint configuration is :
>         <reference id="hazelcast"
>         interface="org.apache.camel.Component" filter="(type=hazelcast)"/>
>
>         My features works in 4.0.4 so I don't know what is broken here.
>         Any help is welcome.
>
>         Regards,
>         -- 
>         Arnaud Deprez
>         Software Engineer
>         Phone: +32 497 23 30 44 <tel:%2B32%20497%2023%2030%2044>
>         Linked'In: https://www.linkedin.com/in/deprezarnaud
>         Github: https://github.com/arnaud-deprez
>
>
> -- 
> Arnaud Deprez
> Software Engineer
> Phone: +32 497 23 30 44
> Linked'In: https://www.linkedin.com/in/deprezarnaud
> Github: https://github.com/arnaud-deprez


Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Arnaud Deprez <ar...@gmail.com>.
Nope, as you could see in my previous mail, I can see the service when I
execute the command: service:list org.apache.camel.Component.
Moreover, when I install the exact same features in karaf 4.0.4, it just
works.

It also happens with other OSGi services, so the problem isn't related to
hazelcast.
According to me, it smells a breaking change in aries blueprint but I'm not
sure right now.

Rgds,

On Mon, May 9, 2016 at 3:12 PM Morgan Hautman <mo...@gmail.com>
wrote:

> Hi Arnaud,
>
> Didn't you forgot to install camel-hazelcast feature?
>
> Regards,
> Morgan
>
> 2016-05-09 14:53 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:
>
>> Hi folks,
>>
>> Just tried the new karaf release and I met this issue when I install my
>> bundles that are using blueprint as DI engine:
>> Error executing command: Unable to resolve root: missing requirement
>> [root] osgi.identity; osgi.identity=enterprise-contract;
>> type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
>> filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
>> [caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
>> requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
>> osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
>> resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
>> [enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
>> osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
>> version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
>> by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
>> requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
>> effective:=active;
>> filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
>> [caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
>> missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
>> osgi.service; effective:=active;
>> filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>>
>> However I can see my service with the following command:
>> karaf@root(feature)> service:list org.apache.camel.Component
>> [org.apache.camel.Component]
>> ----------------------------
>>  osgi.service.blueprint.compname = hazelcastComponent
>>  service.bundleid = 290
>>  service.id = 292
>>  service.scope = bundle
>>  type = hazelcast
>> Provided by :
>>  Bundle 290
>>
>> My blueprint configuration is :
>> <reference id="hazelcast" interface="org.apache.camel.Component"
>> filter="(type=hazelcast)"/>
>>
>> My features works in 4.0.4 so I don't know what is broken here.
>> Any help is welcome.
>>
>> Regards,
>> --
>> Arnaud Deprez
>> Software Engineer
>> Phone: +32 497 23 30 44
>> Linked'In: https://www.linkedin.com/in/deprezarnaud
>> Github: https://github.com/arnaud-deprez
>>
>
> --
Arnaud Deprez
Software Engineer
Phone: +32 497 23 30 44
Linked'In: https://www.linkedin.com/in/deprezarnaud
Github: https://github.com/arnaud-deprez

Re: Karaf 4.0.5 cannot resolve some OSGi services

Posted by Morgan Hautman <mo...@gmail.com>.
Hi Arnaud,

Didn't you forgot to install camel-hazelcast feature?

Regards,
Morgan

2016-05-09 14:53 GMT+02:00 Arnaud Deprez <ar...@gmail.com>:

> Hi folks,
>
> Just tried the new karaf release and I met this issue when I install my
> bundles that are using blueprint as DI engine:
> Error executing command: Unable to resolve root: missing requirement
> [root] osgi.identity; osgi.identity=enterprise-contract;
> type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]";
> filter:="(&(osgi.identity=enterprise-contract)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))"
> [caused by: Unable to resolve enterprise-contract/1.4.0.SNAPSHOT: missing
> requirement [enterprise-contract/1.4.0.SNAPSHOT] osgi.identity;
> osgi.identity=enterprise-customer; type=karaf.feature [caused by: Unable to
> resolve enterprise-customer/1.4.0.SNAPSHOT: missing requirement
> [enterprise-customer/1.4.0.SNAPSHOT] osgi.identity;
> osgi.identity=be.lampiris.api.customer-rest; type=osgi.bundle;
> version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused
> by: Unable to resolve be.lampiris.api.customer-rest/1.4.0.SNAPSHOT: missing
> requirement [be.lampiris.api.customer-rest/1.4.0.SNAPSHOT] osgi.service;
> effective:=active;
> filter:="(objectClass=be.lampiris.api.customer.CustomerQueryService)"
> [caused by: Unable to resolve be.lampiris.api.customer-impl/1.4.0.SNAPSHOT:
> missing requirement [be.lampiris.api.customer-impl/1.4.0.SNAPSHOT]
> osgi.service; effective:=active;
> filter:="(&(objectClass=org.apache.camel.Component)(type=hazelcast))"]]]]
>
> However I can see my service with the following command:
> karaf@root(feature)> service:list org.apache.camel.Component
> [org.apache.camel.Component]
> ----------------------------
>  osgi.service.blueprint.compname = hazelcastComponent
>  service.bundleid = 290
>  service.id = 292
>  service.scope = bundle
>  type = hazelcast
> Provided by :
>  Bundle 290
>
> My blueprint configuration is :
> <reference id="hazelcast" interface="org.apache.camel.Component"
> filter="(type=hazelcast)"/>
>
> My features works in 4.0.4 so I don't know what is broken here.
> Any help is welcome.
>
> Regards,
> --
> Arnaud Deprez
> Software Engineer
> Phone: +32 497 23 30 44
> Linked'In: https://www.linkedin.com/in/deprezarnaud
> Github: https://github.com/arnaud-deprez
>