You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Rodolfo Alcazar Portillo <ro...@gmail.com> on 2016/02/18 17:30:46 UTC

Frustrating DOSGI

Hi, my first time on the list :)

I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
following some tutorials, mainly lessons 4 & 8 in
http://www.liquid-reality.de/, but can't make dosgi startup in karaf. I'm
stucked here (the versions shown below give the less errors, others give
thougher errors):

karaf@root> features:chooseurl cxf-dosgi 1.4.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features

(good!)

karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature
cxf-dosgi-discovery-distributed/0.0.0:
Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0
in feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0: missing requirement
[216.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))

(oops, ok, let's provide cxf)...

karaf@root> features:chooseurl cxf 2.7.4
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features

(ok)

karaf@root> features:install cxf

(ok, and here we go again:)

karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature
cxf-dosgi-discovery-distributed/0.0.0:
Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0
in feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0: missing requirement
[223.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))

karaf@root> list|grep cxf
[ 197] [Active     ] [Created     ] [       ] [   50] camel-cxf-transport
(2.14.1)
[ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)

Why? I'm on the right version, providing the right package! As said, with
other versions I get other errors, mainly if I use cxf 3.1.0 or higher :
google for "joda-time via two dependency chains"

Any help on this will be welcome, thanks in advance.

Greets. R.

Re: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
Will take this into account. This may help us upgrading versions. Thanks
again...

Rodolfo

2016-02-19 11:11 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:

> Servicemix might have some issues here as it preinstalls a certain version
> of cxf and camel.
> These versions can conflict with the cxf dosgi refers to.
> I think the way to go is to align the versions to the one your dosgi
> version uses.
>
> Christian
>
>
> On 19.02.2016 10:42, Rodolfo Alcazar Portillo wrote:
>
> Dear Morgan,
>
> Aha! This means that our installation has some issue (in fact this is
> ServiceMix using Karaf 2.4.1). Will try it on a machine at home.
>
> Thank you very much for the test.
>
> Greetings...
>
> Rodolfo
>
>
> 2016-02-19 9:43 GMT+01:00 Morgan <mo...@gmail.com>:
>
>> Hey Rodolfo,
>>
>> Fresh karaf 2.4.1 -> Here is what I did and it's going smooth without a
>> problem.
>>
>> - features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>> - features:install cxf-dosgi-core
>> - features:install cxf-dosgi-discovery-distributed
>>
>> Regards,
>> Morgan
>>
>>
>> On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
>>
>> ... in case anyone wants to see the behavior with newer versions...
>>
>> karaf@root> features:chooseurl cxf-dosgi 1.7.0
>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
>>
>> karaf@root> features:install cxf-dosgi-discovery-distributed
>> Error executing command: Can't install feature
>> cxf-dosgi-discovery-distributed/0.0.0:
>> Could not start bundle
>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0 in feature(s)
>> cxf-dosgi-core-1.7.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>> [317]: Unable to resolve 317.0: missing requirement [317.0]
>> osgi.wiring.package;
>> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
>>
>> (ok, I assume it requires CXF>=3.1.0)
>>
>> karaf@root> features:chooseurl cxf 3.1.0
>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features
>>
>> karaf@root> features:install cxf/3.1.0
>> Error executing command: Can't install feature cxf/3.1.0:
>> Could not start bundle
>> mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in feature(s)
>> wss4j-2.1.0: Uses constraint violation. Unable to resolve bundle revision
>> org.apache.wss4j.wss4j-ws-security-stax [299.0] because it is exposed to
>> package 'org.joda.time' from bundle revisions joda-time [294.0] and
>> org.apache.servicemix.bundles.joda-time [8.0] via two dependency chains.
>> Chain 1:
>>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>     import:
>> (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
>>      |
>>     export: osgi.wiring.package=org.joda.time
>>   joda-time [294.0]
>> Chain 2:
>>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>     import: (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
>>      |
>>     export: osgi.wiring.package=org.opensaml.xmlsec.signature.support;
>> uses:=org.joda.time
>>   org.apache.servicemix.bundles.opensaml [293.0]
>>     import:
>> (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
>>      |
>>     export: osgi.wiring.package=org.joda.time
>>   org.apache.servicemix.bundles.joda-time [8.0]
>>
>> What!?
>>
>> Thanks, Rodolfo.
>>
>> 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
>> rodolfo.alcazar.portillo@gmail.com>:
>>
>>> Hi, my first time on the list :)
>>>
>>> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
>>> following some tutorials, mainly lessons 4 & 8 in
>>> http://www.liquid-reality.de/, but can't make dosgi startup in karaf.
>>> I'm stucked here (the versions shown below give the less errors, others
>>> give thougher errors):
>>>
>>> karaf@root> features:chooseurl cxf-dosgi 1.4.0
>>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>>
>>> (good!)
>>>
>>> karaf@root> features:install cxf-dosgi-discovery-distributed
>>> Error executing command: Can't install feature
>>> cxf-dosgi-discovery-distributed/0.0.0:
>>> Could not start bundle
>>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>>> [216]: Unable to resolve 216.0: missing requirement [216.0]
>>> osgi.wiring.package;
>>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>> (oops, ok, let's provide cxf)...
>>>
>>> karaf@root> features:chooseurl cxf 2.7.4
>>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>>
>>> (ok)
>>>
>>> karaf@root> features:install cxf
>>>
>>> (ok, and here we go again:)
>>>
>>> karaf@root> features:install cxf-dosgi-discovery-distributed
>>> Error executing command: Can't install feature
>>> cxf-dosgi-discovery-distributed/0.0.0:
>>> Could not start bundle
>>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>>> [223]: Unable to resolve 223.0: missing requirement [223.0]
>>> osgi.wiring.package;
>>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>> karaf@root> list|grep cxf
>>> [ 197] [Active     ] [Created     ] [       ] [   50]
>>> camel-cxf-transport (2.14.1)
>>> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>>>
>>> Why? I'm on the right version, providing the right package! As said,
>>> with other versions I get other errors, mainly if I use cxf 3.1.0 or higher
>>> : google for "joda-time via two dependency chains"
>>>
>>> Any help on this will be welcome, thanks in advance.
>>>
>>> Greets. R.
>>>
>>>
>>
>>
>
>
> --
> Christian Schneiderhttp://www.liquid-reality.de
>
> Open Source Architecthttp://www.talend.com
>
>

Re: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
Yes, of course, it it ServiceMix 5.4.0 (I assume downloaded here:
https://servicemix.apache.org/downloads/servicemix-5.4.0.html).

Rodolfo

2016-02-19 11:17 GMT+01:00 Morgan <mo...@gmail.com>:

> Rodolfo,
>
> Maybe you can tell us which version of ServiceMix you use?
>
> Regards,
> Morgan
>
>
> On 2016-02-19 11:11, Christian Schneider wrote:
>
> Servicemix might have some issues here as it preinstalls a certain version
> of cxf and camel.
> These versions can conflict with the cxf dosgi refers to.
> I think the way to go is to align the versions to the one your dosgi
> version uses.
>
> Christian
>
> On 19.02.2016 10:42, Rodolfo Alcazar Portillo wrote:
>
> Dear Morgan,
>
> Aha! This means that our installation has some issue (in fact this is
> ServiceMix using Karaf 2.4.1). Will try it on a machine at home.
>
> Thank you very much for the test.
>
> Greetings...
>
> Rodolfo
>
>
> 2016-02-19 9:43 GMT+01:00 Morgan <mo...@gmail.com>:
>
>> Hey Rodolfo,
>>
>> Fresh karaf 2.4.1 -> Here is what I did and it's going smooth without a
>> problem.
>>
>> - features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>> - features:install cxf-dosgi-core
>> - features:install cxf-dosgi-discovery-distributed
>>
>> Regards,
>> Morgan
>>
>>
>> On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
>>
>> ... in case anyone wants to see the behavior with newer versions...
>>
>> karaf@root> features:chooseurl cxf-dosgi 1.7.0
>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
>>
>> karaf@root> features:install cxf-dosgi-discovery-distributed
>> Error executing command: Can't install feature
>> cxf-dosgi-discovery-distributed/0.0.0:
>> Could not start bundle
>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0 in feature(s)
>> cxf-dosgi-core-1.7.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>> [317]: Unable to resolve 317.0: missing requirement [317.0]
>> osgi.wiring.package;
>> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
>>
>> (ok, I assume it requires CXF>=3.1.0)
>>
>> karaf@root> features:chooseurl cxf 3.1.0
>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features
>>
>> karaf@root> features:install cxf/3.1.0
>> Error executing command: Can't install feature cxf/3.1.0:
>> Could not start bundle
>> mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in feature(s)
>> wss4j-2.1.0: Uses constraint violation. Unable to resolve bundle revision
>> org.apache.wss4j.wss4j-ws-security-stax [299.0] because it is exposed to
>> package 'org.joda.time' from bundle revisions joda-time [294.0] and
>> org.apache.servicemix.bundles.joda-time [8.0] via two dependency chains.
>> Chain 1:
>>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>     import:
>> (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
>>      |
>>     export: osgi.wiring.package=org.joda.time
>>   joda-time [294.0]
>> Chain 2:
>>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>     import: (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
>>      |
>>     export: osgi.wiring.package=org.opensaml.xmlsec.signature.support;
>> uses:=org.joda.time
>>   org.apache.servicemix.bundles.opensaml [293.0]
>>     import:
>> (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
>>      |
>>     export: osgi.wiring.package=org.joda.time
>>   org.apache.servicemix.bundles.joda-time [8.0]
>>
>> What!?
>>
>> Thanks, Rodolfo.
>>
>> 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
>> rodolfo.alcazar.portillo@gmail.com>:
>>
>>> Hi, my first time on the list :)
>>>
>>> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
>>> following some tutorials, mainly lessons 4 & 8 in
>>> http://www.liquid-reality.de/, but can't make dosgi startup in karaf.
>>> I'm stucked here (the versions shown below give the less errors, others
>>> give thougher errors):
>>>
>>> karaf@root> features:chooseurl cxf-dosgi 1.4.0
>>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>>
>>> (good!)
>>>
>>> karaf@root> features:install cxf-dosgi-discovery-distributed
>>> Error executing command: Can't install feature
>>> cxf-dosgi-discovery-distributed/0.0.0:
>>> Could not start bundle
>>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>>> [216]: Unable to resolve 216.0: missing requirement [216.0]
>>> osgi.wiring.package;
>>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>> (oops, ok, let's provide cxf)...
>>>
>>> karaf@root> features:chooseurl cxf 2.7.4
>>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>>
>>> (ok)
>>>
>>> karaf@root> features:install cxf
>>>
>>> (ok, and here we go again:)
>>>
>>> karaf@root> features:install cxf-dosgi-discovery-distributed
>>> Error executing command: Can't install feature
>>> cxf-dosgi-discovery-distributed/0.0.0:
>>> Could not start bundle
>>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>>> [223]: Unable to resolve 223.0: missing requirement [223.0]
>>> osgi.wiring.package;
>>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>> karaf@root> list|grep cxf
>>> [ 197] [Active     ] [Created     ] [       ] [   50]
>>> camel-cxf-transport (2.14.1)
>>> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>>>
>>> Why? I'm on the right version, providing the right package! As said,
>>> with other versions I get other errors, mainly if I use cxf 3.1.0 or higher
>>> : google for "joda-time via two dependency chains"
>>>
>>> Any help on this will be welcome, thanks in advance.
>>>
>>> Greets. R.
>>>
>>>
>>
>>
>
>
> --
> Christian Schneiderhttp://www.liquid-reality.de
>
> Open Source Architecthttp://www.talend.com
>
>
>

Re: Frustrating DOSGI

Posted by Morgan <mo...@gmail.com>.
Rodolfo,

Maybe you can tell us which version of ServiceMix you use?

Regards,
Morgan

On 2016-02-19 11:11, Christian Schneider wrote:
> Servicemix might have some issues here as it preinstalls a certain 
> version of cxf and camel.
> These versions can conflict with the cxf dosgi refers to.
> I think the way to go is to align the versions to the one your dosgi 
> version uses.
>
> Christian
>
> On 19.02.2016 10:42, Rodolfo Alcazar Portillo wrote:
>> Dear Morgan,
>>
>> Aha! This means that our installation has some issue (in fact this is 
>> ServiceMix using Karaf 2.4.1). Will try it on a machine at home.
>>
>> Thank you very much for the test.
>>
>> Greetings...
>>
>> Rodolfo
>>
>>
>> 2016-02-19 9:43 GMT+01:00 Morgan <morgan.hautman@gmail.com 
>> <ma...@gmail.com>>:
>>
>>     Hey Rodolfo,
>>
>>     Fresh karaf 2.4.1 -> Here is what I did and it's going smooth
>>     without a problem.
>>
>>     - features:addurl
>>     mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>     - features:install cxf-dosgi-core
>>     - features:install cxf-dosgi-discovery-distributed
>>
>>     Regards,
>>     Morgan
>>
>>
>>     On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
>>>     ... in case anyone wants to see the behavior with newer versions...
>>>
>>>     karaf@root> features:chooseurl cxf-dosgi 1.7.0
>>>     Adding feature url
>>>     mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
>>>
>>>     karaf@root> features:install cxf-dosgi-discovery-distributed
>>>     Error executing command: Can't install feature
>>>     cxf-dosgi-discovery-distributed/0.0.0:
>>>     Could not start bundle
>>>     mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0 in
>>>     feature(s) cxf-dosgi-core-1.7.0: Unresolved constraint in bundle
>>>     cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing
>>>     requirement [317.0] osgi.wiring.package;
>>>     (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
>>>
>>>     (ok, I assume it requires CXF>=3.1.0)
>>>
>>>     karaf@root> features:chooseurl cxf 3.1.0
>>>     Adding feature url
>>>     mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features
>>>
>>>     karaf@root> features:install cxf/3.1.0
>>>     Error executing command: Can't install feature cxf/3.1.0:
>>>     Could not start bundle
>>>     mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in
>>>     feature(s) wss4j-2.1.0: Uses constraint violation. Unable to
>>>     resolve bundle revision org.apache.wss4j.wss4j-ws-security-stax
>>>     [299.0] because it is exposed to package 'org.joda.time' from
>>>     bundle revisions joda-time [294.0] and
>>>     org.apache.servicemix.bundles.joda-time [8.0] via two dependency
>>>     chains.
>>>     Chain 1:
>>>       org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>>         import:
>>>     (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
>>>          |
>>>         export: osgi.wiring.package=org.joda.time
>>>       joda-time [294.0]
>>>     Chain 2:
>>>       org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>>         import:
>>>     (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
>>>          |
>>>         export:
>>>     osgi.wiring.package=org.opensaml.xmlsec.signature.support;
>>>     uses:=org.joda.time
>>>       org.apache.servicemix.bundles.opensaml [293.0]
>>>         import:
>>>     (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
>>>          |
>>>         export: osgi.wiring.package=org.joda.time
>>>       org.apache.servicemix.bundles.joda-time [8.0]
>>>
>>>     What!?
>>>
>>>     Thanks, Rodolfo.
>>>
>>>     2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo
>>>     <rodolfo.alcazar.portillo@gmail.com
>>>     <ma...@gmail.com>>:
>>>
>>>         Hi, my first time on the list :)
>>>
>>>         I'm using karaf 2.4.1 (can't change version) and want to
>>>         test dosgi. I'm following some tutorials, mainly lessons 4 &
>>>         8 in http://www.liquid-reality.de/, but can't make dosgi
>>>         startup in karaf. I'm stucked here (the versions shown below
>>>         give the less errors, others give thougher errors):
>>>
>>>         karaf@root> features:chooseurl cxf-dosgi 1.4.0
>>>         Adding feature url
>>>         mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>>
>>>         (good!)
>>>
>>>         karaf@root> features:install cxf-dosgi-discovery-distributed
>>>         Error executing command: Can't install feature
>>>         cxf-dosgi-discovery-distributed/0.0.0:
>>>         Could not start bundle
>>>         mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
>>>         feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
>>>         bundle cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0:
>>>         missing requirement [216.0] osgi.wiring.package;
>>>         (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>>         (oops, ok, let's provide cxf)...
>>>
>>>         karaf@root> features:chooseurl cxf 2.7.4
>>>         Adding feature url
>>>         mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>>
>>>         (ok)
>>>
>>>         karaf@root> features:install cxf
>>>
>>>         (ok, and here we go again:)
>>>
>>>         karaf@root> features:install cxf-dosgi-discovery-distributed
>>>         Error executing command: Can't install feature
>>>         cxf-dosgi-discovery-distributed/0.0.0:
>>>         Could not start bundle
>>>         mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
>>>         feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
>>>         bundle cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0:
>>>         missing requirement [223.0] osgi.wiring.package;
>>>         (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>>         karaf@root> list|grep cxf
>>>         [ 197] [Active     ] [Created     ] [       ] [   50]
>>>         camel-cxf-transport (2.14.1)
>>>         [ 198] [Active     ] [Created     ] [       ] [   50]
>>>         camel-cxf (2.14.1)
>>>
>>>         Why? I'm on the right version, providing the right package!
>>>         As said, with other versions I get other errors, mainly if I
>>>         use cxf 3.1.0 or higher : google for "joda-time via two
>>>         dependency chains"
>>>
>>>         Any help on this will be welcome, thanks in advance.
>>>
>>>         Greets. R.
>>>
>>>
>>
>>
>
>
> -- 
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com


Re: Frustrating DOSGI

Posted by Christian Schneider <ch...@die-schneider.net>.
Servicemix might have some issues here as it preinstalls a certain 
version of cxf and camel.
These versions can conflict with the cxf dosgi refers to.
I think the way to go is to align the versions to the one your dosgi 
version uses.

Christian

On 19.02.2016 10:42, Rodolfo Alcazar Portillo wrote:
> Dear Morgan,
>
> Aha! This means that our installation has some issue (in fact this is 
> ServiceMix using Karaf 2.4.1). Will try it on a machine at home.
>
> Thank you very much for the test.
>
> Greetings...
>
> Rodolfo
>
>
> 2016-02-19 9:43 GMT+01:00 Morgan <morgan.hautman@gmail.com 
> <ma...@gmail.com>>:
>
>     Hey Rodolfo,
>
>     Fresh karaf 2.4.1 -> Here is what I did and it's going smooth
>     without a problem.
>
>     - features:addurl
>     mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>     - features:install cxf-dosgi-core
>     - features:install cxf-dosgi-discovery-distributed
>
>     Regards,
>     Morgan
>
>
>     On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
>>     ... in case anyone wants to see the behavior with newer versions...
>>
>>     karaf@root> features:chooseurl cxf-dosgi 1.7.0
>>     Adding feature url
>>     mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
>>
>>     karaf@root> features:install cxf-dosgi-discovery-distributed
>>     Error executing command: Can't install feature
>>     cxf-dosgi-discovery-distributed/0.0.0:
>>     Could not start bundle
>>     mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0 in feature(s)
>>     cxf-dosgi-core-1.7.0: Unresolved constraint in bundle
>>     cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing
>>     requirement [317.0] osgi.wiring.package;
>>     (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
>>
>>     (ok, I assume it requires CXF>=3.1.0)
>>
>>     karaf@root> features:chooseurl cxf 3.1.0
>>     Adding feature url
>>     mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features
>>
>>     karaf@root> features:install cxf/3.1.0
>>     Error executing command: Can't install feature cxf/3.1.0:
>>     Could not start bundle
>>     mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in
>>     feature(s) wss4j-2.1.0: Uses constraint violation. Unable to
>>     resolve bundle revision org.apache.wss4j.wss4j-ws-security-stax
>>     [299.0] because it is exposed to package 'org.joda.time' from
>>     bundle revisions joda-time [294.0] and
>>     org.apache.servicemix.bundles.joda-time [8.0] via two dependency
>>     chains.
>>     Chain 1:
>>       org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>         import:
>>     (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
>>          |
>>         export: osgi.wiring.package=org.joda.time
>>       joda-time [294.0]
>>     Chain 2:
>>       org.apache.wss4j.wss4j-ws-security-stax [299.0]
>>         import:
>>     (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
>>          |
>>         export:
>>     osgi.wiring.package=org.opensaml.xmlsec.signature.support;
>>     uses:=org.joda.time
>>       org.apache.servicemix.bundles.opensaml [293.0]
>>         import:
>>     (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
>>          |
>>         export: osgi.wiring.package=org.joda.time
>>       org.apache.servicemix.bundles.joda-time [8.0]
>>
>>     What!?
>>
>>     Thanks, Rodolfo.
>>
>>     2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo
>>     <rodolfo.alcazar.portillo@gmail.com
>>     <ma...@gmail.com>>:
>>
>>         Hi, my first time on the list :)
>>
>>         I'm using karaf 2.4.1 (can't change version) and want to test
>>         dosgi. I'm following some tutorials, mainly lessons 4 & 8 in
>>         http://www.liquid-reality.de/, but can't make dosgi startup
>>         in karaf. I'm stucked here (the versions shown below give the
>>         less errors, others give thougher errors):
>>
>>         karaf@root> features:chooseurl cxf-dosgi 1.4.0
>>         Adding feature url
>>         mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>
>>         (good!)
>>
>>         karaf@root> features:install cxf-dosgi-discovery-distributed
>>         Error executing command: Can't install feature
>>         cxf-dosgi-discovery-distributed/0.0.0:
>>         Could not start bundle
>>         mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
>>         feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
>>         bundle cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0:
>>         missing requirement [216.0] osgi.wiring.package;
>>         (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>
>>         (oops, ok, let's provide cxf)...
>>
>>         karaf@root> features:chooseurl cxf 2.7.4
>>         Adding feature url
>>         mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>
>>         (ok)
>>
>>         karaf@root> features:install cxf
>>
>>         (ok, and here we go again:)
>>
>>         karaf@root> features:install cxf-dosgi-discovery-distributed
>>         Error executing command: Can't install feature
>>         cxf-dosgi-discovery-distributed/0.0.0:
>>         Could not start bundle
>>         mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
>>         feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
>>         bundle cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0:
>>         missing requirement [223.0] osgi.wiring.package;
>>         (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>
>>         karaf@root> list|grep cxf
>>         [ 197] [Active     ] [Created     ] [       ] [   50]
>>         camel-cxf-transport (2.14.1)
>>         [ 198] [Active     ] [Created     ] [       ] [   50]
>>         camel-cxf (2.14.1)
>>
>>         Why? I'm on the right version, providing the right package!
>>         As said, with other versions I get other errors, mainly if I
>>         use cxf 3.1.0 or higher : google for "joda-time via two
>>         dependency chains"
>>
>>         Any help on this will be welcome, thanks in advance.
>>
>>         Greets. R.
>>
>>
>
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


Re: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
Dear Morgan,

Aha! This means that our installation has some issue (in fact this is
ServiceMix using Karaf 2.4.1). Will try it on a machine at home.

Thank you very much for the test.

Greetings...

Rodolfo


2016-02-19 9:43 GMT+01:00 Morgan <mo...@gmail.com>:

> Hey Rodolfo,
>
> Fresh karaf 2.4.1 -> Here is what I did and it's going smooth without a
> problem.
>
> - features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
> - features:install cxf-dosgi-core
> - features:install cxf-dosgi-discovery-distributed
>
> Regards,
> Morgan
>
>
> On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
>
> ... in case anyone wants to see the behavior with newer versions...
>
> karaf@root> features:chooseurl cxf-dosgi 1.7.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
>
> karaf@root> features:install cxf-dosgi-discovery-distributed
> Error executing command: Can't install feature
> cxf-dosgi-discovery-distributed/0.0.0:
> Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0
> in feature(s) cxf-dosgi-core-1.7.0: Unresolved constraint in bundle
> cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing requirement
> [317.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
>
> (ok, I assume it requires CXF>=3.1.0)
>
> karaf@root> features:chooseurl cxf 3.1.0
> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features
>
> karaf@root> features:install cxf/3.1.0
> Error executing command: Can't install feature cxf/3.1.0:
> Could not start bundle
> mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in feature(s)
> wss4j-2.1.0: Uses constraint violation. Unable to resolve bundle revision
> org.apache.wss4j.wss4j-ws-security-stax [299.0] because it is exposed to
> package 'org.joda.time' from bundle revisions joda-time [294.0] and
> org.apache.servicemix.bundles.joda-time [8.0] via two dependency chains.
> Chain 1:
>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>     import:
> (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
>      |
>     export: osgi.wiring.package=org.joda.time
>   joda-time [294.0]
> Chain 2:
>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>     import: (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
>      |
>     export: osgi.wiring.package=org.opensaml.xmlsec.signature.support;
> uses:=org.joda.time
>   org.apache.servicemix.bundles.opensaml [293.0]
>     import:
> (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
>      |
>     export: osgi.wiring.package=org.joda.time
>   org.apache.servicemix.bundles.joda-time [8.0]
>
> What!?
>
> Thanks, Rodolfo.
>
> 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
> <ro...@gmail.com>:
>
>> Hi, my first time on the list :)
>>
>> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
>> following some tutorials, mainly lessons 4 & 8 in
>> http://www.liquid-reality.de/, but can't make dosgi startup in karaf.
>> I'm stucked here (the versions shown below give the less errors, others
>> give thougher errors):
>>
>> karaf@root> features:chooseurl cxf-dosgi 1.4.0
>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>
>> (good!)
>>
>> karaf@root> features:install cxf-dosgi-discovery-distributed
>> Error executing command: Can't install feature
>> cxf-dosgi-discovery-distributed/0.0.0:
>> Could not start bundle
>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>> [216]: Unable to resolve 216.0: missing requirement [216.0]
>> osgi.wiring.package;
>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>
>> (oops, ok, let's provide cxf)...
>>
>> karaf@root> features:chooseurl cxf 2.7.4
>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>
>> (ok)
>>
>> karaf@root> features:install cxf
>>
>> (ok, and here we go again:)
>>
>> karaf@root> features:install cxf-dosgi-discovery-distributed
>> Error executing command: Can't install feature
>> cxf-dosgi-discovery-distributed/0.0.0:
>> Could not start bundle
>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>> [223]: Unable to resolve 223.0: missing requirement [223.0]
>> osgi.wiring.package;
>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>
>> karaf@root> list|grep cxf
>> [ 197] [Active     ] [Created     ] [       ] [   50] camel-cxf-transport
>> (2.14.1)
>> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>>
>> Why? I'm on the right version, providing the right package! As said, with
>> other versions I get other errors, mainly if I use cxf 3.1.0 or higher :
>> google for "joda-time via two dependency chains"
>>
>> Any help on this will be welcome, thanks in advance.
>>
>> Greets. R.
>>
>>
>
>

Re: Frustrating DOSGI

Posted by Morgan <mo...@gmail.com>.
Hey Rodolfo,

Fresh karaf 2.4.1 -> Here is what I did and it's going smooth without a 
problem.

- features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
- features:install cxf-dosgi-core
- features:install cxf-dosgi-discovery-distributed

Regards,
Morgan

On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
> ... in case anyone wants to see the behavior with newer versions...
>
> karaf@root> features:chooseurl cxf-dosgi 1.7.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
>
> karaf@root> features:install cxf-dosgi-discovery-distributed
> Error executing command: Can't install feature 
> cxf-dosgi-discovery-distributed/0.0.0:
> Could not start bundle 
> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0 in feature(s) 
> cxf-dosgi-core-1.7.0: Unresolved constraint in bundle 
> cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing 
> requirement [317.0] osgi.wiring.package; 
> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
>
> (ok, I assume it requires CXF>=3.1.0)
>
> karaf@root> features:chooseurl cxf 3.1.0
> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features
>
> karaf@root> features:install cxf/3.1.0
> Error executing command: Can't install feature cxf/3.1.0:
> Could not start bundle 
> mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in feature(s) 
> wss4j-2.1.0: Uses constraint violation. Unable to resolve bundle 
> revision org.apache.wss4j.wss4j-ws-security-stax [299.0] because it is 
> exposed to package 'org.joda.time' from bundle revisions joda-time 
> [294.0] and org.apache.servicemix.bundles.joda-time [8.0] via two 
> dependency chains.
> Chain 1:
>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>     import: 
> (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
>      |
>     export: osgi.wiring.package=org.joda.time
>   joda-time [294.0]
> Chain 2:
>   org.apache.wss4j.wss4j-ws-security-stax [299.0]
>     import: (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
>      |
>     export: osgi.wiring.package=org.opensaml.xmlsec.signature.support; 
> uses:=org.joda.time
>   org.apache.servicemix.bundles.opensaml [293.0]
>     import: 
> (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
>      |
>     export: osgi.wiring.package=org.joda.time
>   org.apache.servicemix.bundles.joda-time [8.0]
>
> What!?
>
> Thanks, Rodolfo.
>
> 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo 
> <rodolfo.alcazar.portillo@gmail.com 
> <ma...@gmail.com>>:
>
>     Hi, my first time on the list :)
>
>     I'm using karaf 2.4.1 (can't change version) and want to test
>     dosgi. I'm following some tutorials, mainly lessons 4 & 8 in
>     http://www.liquid-reality.de/, but can't make dosgi startup in
>     karaf. I'm stucked here (the versions shown below give the less
>     errors, others give thougher errors):
>
>     karaf@root> features:chooseurl cxf-dosgi 1.4.0
>     Adding feature url
>     mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>
>     (good!)
>
>     karaf@root> features:install cxf-dosgi-discovery-distributed
>     Error executing command: Can't install feature
>     cxf-dosgi-discovery-distributed/0.0.0:
>     Could not start bundle
>     mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>     cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
>     cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0: missing
>     requirement [216.0] osgi.wiring.package;
>     (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
>     (oops, ok, let's provide cxf)...
>
>     karaf@root> features:chooseurl cxf 2.7.4
>     Adding feature url
>     mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>
>     (ok)
>
>     karaf@root> features:install cxf
>
>     (ok, and here we go again:)
>
>     karaf@root> features:install cxf-dosgi-discovery-distributed
>     Error executing command: Can't install feature
>     cxf-dosgi-discovery-distributed/0.0.0:
>     Could not start bundle
>     mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>     cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
>     cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0: missing
>     requirement [223.0] osgi.wiring.package;
>     (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
>     karaf@root> list|grep cxf
>     [ 197] [Active     ] [Created     ] [       ] [ 50]
>     camel-cxf-transport (2.14.1)
>     [ 198] [Active     ] [Created     ] [       ] [ 50] camel-cxf (2.14.1)
>
>     Why? I'm on the right version, providing the right package! As
>     said, with other versions I get other errors, mainly if I use cxf
>     3.1.0 or higher : google for "joda-time via two dependency chains"
>
>     Any help on this will be welcome, thanks in advance.
>
>     Greets. R.
>
>


Re: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
... in case anyone wants to see the behavior with newer versions...

karaf@root> features:chooseurl cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features

karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature
cxf-dosgi-discovery-distributed/0.0.0:
Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0
in feature(s) cxf-dosgi-core-1.7.0: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing requirement
[317.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))

(ok, I assume it requires CXF>=3.1.0)

karaf@root> features:chooseurl cxf 3.1.0
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features

karaf@root> features:install cxf/3.1.0
Error executing command: Can't install feature cxf/3.1.0:
Could not start bundle
mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in feature(s)
wss4j-2.1.0: Uses constraint violation. Unable to resolve bundle revision
org.apache.wss4j.wss4j-ws-security-stax [299.0] because it is exposed to
package 'org.joda.time' from bundle revisions joda-time [294.0] and
org.apache.servicemix.bundles.joda-time [8.0] via two dependency chains.
Chain 1:
  org.apache.wss4j.wss4j-ws-security-stax [299.0]
    import:
(&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=org.joda.time
  joda-time [294.0]
Chain 2:
  org.apache.wss4j.wss4j-ws-security-stax [299.0]
    import: (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
     |
    export: osgi.wiring.package=org.opensaml.xmlsec.signature.support;
uses:=org.joda.time
  org.apache.servicemix.bundles.opensaml [293.0]
    import:
(&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=org.joda.time
  org.apache.servicemix.bundles.joda-time [8.0]

What!?

Thanks, Rodolfo.

2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
rodolfo.alcazar.portillo@gmail.com>:

> Hi, my first time on the list :)
>
> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
> following some tutorials, mainly lessons 4 & 8 in
> http://www.liquid-reality.de/, but can't make dosgi startup in karaf. I'm
> stucked here (the versions shown below give the less errors, others give
> thougher errors):
>
> karaf@root> features:chooseurl cxf-dosgi 1.4.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>
> (good!)
>
> karaf@root> features:install cxf-dosgi-discovery-distributed
> Error executing command: Can't install feature
> cxf-dosgi-discovery-distributed/0.0.0:
> Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0
> in feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
> cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0: missing requirement
> [216.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
> (oops, ok, let's provide cxf)...
>
> karaf@root> features:chooseurl cxf 2.7.4
> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>
> (ok)
>
> karaf@root> features:install cxf
>
> (ok, and here we go again:)
>
> karaf@root> features:install cxf-dosgi-discovery-distributed
> Error executing command: Can't install feature
> cxf-dosgi-discovery-distributed/0.0.0:
> Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0
> in feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
> cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0: missing requirement
> [223.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
> karaf@root> list|grep cxf
> [ 197] [Active     ] [Created     ] [       ] [   50] camel-cxf-transport
> (2.14.1)
> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>
> Why? I'm on the right version, providing the right package! As said, with
> other versions I get other errors, mainly if I use cxf 3.1.0 or higher :
> google for "joda-time via two dependency chains"
>
> Any help on this will be welcome, thanks in advance.
>
> Greets. R.
>
>

Re: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
No. I am running both containers on the same server. But that's a good tip:
I will check the ports/hosts configuration in the config file and see if
there is no any misconfiguration. Thanks for it.

:)

Rodolfo


2016-02-22 14:17 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:

> Is your client on a different server?
> If yes then you also need to set the property zookeeper.host not only
> zookeeper.port.
>
> Christian
>
> On 22.02.2016 08:32, Rodolfo Alcazar Portillo wrote:
>
>> Hey,
>>
>> Here you have the result,
>> ...
>> karaf@root()> list|grep task
>> 52 | Active      |  80 | 1.0.0.SNAPSHOT | tasklist-model
>> 53 | GracePeriod |  80 | 1.0.0.SNAPSHOT | tasklist-ui
>> karaf@root()> diag 53
>> tasklist-ui (53)
>> ----------------
>> Status: GracePeriod
>> Blueprint
>> 2/22/16 8:10 AM
>> Missing dependencies:
>> (objectClass=net.lr.tasklist.model.TaskService)
>>
>> Mmm... I suppose this is obvious, since the service is provided by
>> net.lr.tasklist.persistence (.impl.TaskServiceImpl), which is in the other
>> Karaf (container A on the example).
>>
>> Hope doing correctly, I've put the persistence and model jars on A
>> (/deploy), and ui and model on B.
>>
>> Something with the SOAP port? IPTables was verified, no local issues.
>>
>> Have a nice week :)
>>
>> R
>>
>>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>

Re: Frustrating DOSGI

Posted by Christian Schneider <ch...@die-schneider.net>.
Is your client on a different server?
If yes then you also need to set the property zookeeper.host not only 
zookeeper.port.

Christian

On 22.02.2016 08:32, Rodolfo Alcazar Portillo wrote:
> Hey,
>
> Here you have the result,
> ...
> karaf@root()> list|grep task
> 52 | Active      |  80 | 1.0.0.SNAPSHOT | tasklist-model
> 53 | GracePeriod |  80 | 1.0.0.SNAPSHOT | tasklist-ui
> karaf@root()> diag 53
> tasklist-ui (53)
> ----------------
> Status: GracePeriod
> Blueprint
> 2/22/16 8:10 AM
> Missing dependencies:
> (objectClass=net.lr.tasklist.model.TaskService)
>
> Mmm... I suppose this is obvious, since the service is provided by 
> net.lr.tasklist.persistence (.impl.TaskServiceImpl), which is in the 
> other Karaf (container A on the example).
>
> Hope doing correctly, I've put the persistence and model jars on A 
> (/deploy), and ui and model on B.
>
> Something with the SOAP port? IPTables was verified, no local issues.
>
> Have a nice week :)
>
> R
>

-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


Re: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
Hey,

Here you have the result,
...
karaf@root()> list|grep task
52 | Active      |  80 | 1.0.0.SNAPSHOT | tasklist-model
53 | GracePeriod |  80 | 1.0.0.SNAPSHOT | tasklist-ui
karaf@root()> diag 53
tasklist-ui (53)
----------------
Status: GracePeriod
Blueprint
2/22/16 8:10 AM
Missing dependencies:
(objectClass=net.lr.tasklist.model.TaskService)

Mmm... I suppose this is obvious, since the service is provided by
net.lr.tasklist.persistence (.impl.TaskServiceImpl), which is in the other
Karaf (container A on the example).

Hope doing correctly, I've put the persistence and model jars on A
(/deploy), and ui and model on B.

Something with the SOAP port? IPTables was verified, no local issues.

Have a nice week :)

R


2016-02-19 16:51 GMT+01:00 Morgan <mo...@gmail.com>:

> Rodolfo,
>
> Can you do :
>
> diag 53(id)
>
> Regards,
> Morgan
>
>
> On 2016-02-19 15:51, Rodolfo Alcazar Portillo wrote:
>
> ...I just want to run this as a proof of concept, later will handle
> versions. So, I got some advances with Karaf 4.0.4. On the server,
> everything goes fine:
>
> karaf@root()> config:property-set -p
> org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
> karaf@root()> config:property-set -p
> org.apache.cxf.dosgi.discovery.zookeeper.server clientPort 2181
> karaf@root()> feature:repo-add cxf-dosgi 1.7.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
> karaf@root()> feature:install cxf-dosgi-discovery-distributed
> cxf-dosgi-zookeeper-server
> karaf@root()> feature:repo-add
> mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> Adding feature url mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> karaf@root()> feature:install example-tasklist-persistence
> karaf@root()> list
> START LEVEL 100 , List Threshold: 50
> ID | State  | Lvl | Version        | Name
>
> ---------------------------------------------------------------------------------------
> 52 | Active |  80 | 1.0.0.SNAPSHOT | tasklist-model
> 53 | Active |  80 | 1.0.0.SNAPSHOT | tasklist-persistence
>
> On the client, DOSGI loads (Yes!!!, small delays!), but it remains in
> GracePeriod:
>
> karaf@root()> config:property-set -p org.ops4j.pax.web
> org.osgi.service.http.port 8182
> karaf@root()> config:property-set -p
> org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
> karaf@root()> feature:repo-add cxf-dosgi 1.7.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
> karaf@root()> feature:install cxf-dosgi-discovery-distributed
> karaf@root()> feature:repo-add
> mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> Adding feature url mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> karaf@root()> feature:install example-tasklist-ui
> karaf@root()> list|grep task
> 52 | Active      |  80 | 1.0.0.SNAPSHOT | tasklist-model
> 53 | GracePeriod |  80 | 1.0.0.SNAPSHOT | tasklist-ui
>
> So the log under data/log/karaf.log says something that I don't get:
>
> 2016-02-19 15:50:14,647 | INFO  | nsole user karaf | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Adding features:
> example-tasklist-ui/[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]
> 2016-02-19 15:50:15,239 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Changes to
> perform:
> 2016-02-19 15:50:15,239 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |   Region: root
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |     Bundles to
> update:
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.model/1.0.0.SNAPSHOT with
> mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Stopping bundles:
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.model/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,241 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Updating bundles:
> 2016-02-19 15:50:15,246 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
> 2016-02-19 15:50:15,261 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Stopping bundles:
> 2016-02-19 15:50:15,261 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.model/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,262 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.ui/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,262 | INFO  | pool-60-thread-1 | BlueprintExtender
>            | 13 - org.apache.aries.blueprint.core - 1.5.0 | Destroying
> BlueprintContainer for bundle net.lr.tasklist.ui/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,265 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Refreshing
> bundles:
> 2016-02-19 15:50:15,266 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.model/1.0.0.SNAPSHOT (Bundle will be updated)
> 2016-02-19 15:50:15,266 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.ui/1.0.0.SNAPSHOT (Wired to
> net.lr.tasklist.model/1.0.0.SNAPSHOT which is being refreshed)
> 2016-02-19 15:50:15,276 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Starting bundles:
> 2016-02-19 15:50:15,277 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.model/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,278 | INFO  | pool-60-thread-1 | bundle
>             | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | Bundle
> Considered for SPI providers: net.lr.tasklist.model
> 2016-02-19 15:50:15,279 | INFO  | pool-60-thread-1 | bundle
>             | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | No
> 'SPI-Provider' Manifest header. Skipping bundle: net.lr.tasklist.model
> 2016-02-19 15:50:15,280 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 |
> net.lr.tasklist.ui/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,288 | INFO  | pool-60-thread-1 |
> InterfaceMonitorManager          | 54 - cxf-dosgi-ri-discovery-distributed
> - 1.7.0 | updating EndpointListener interests:
> [org.osgi.service.remoteserviceadmin.EndpointListener]
> 2016-02-19 15:50:15,291 | INFO  | pool-60-thread-1 |
> BlueprintContainerImpl           | 13 - org.apache.aries.blueprint.core -
> 1.5.0 | Bundle net.lr.tasklist.ui/1.0.0.SNAPSHOT is waiting for
> dependencies [(objectClass=net.lr.tasklist.model.TaskService)]
> 2016-02-19 15:50:15,292 | INFO  | pool-60-thread-1 | bundle
>             | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | Bundle
> Considered for SPI providers: net.lr.tasklist.ui
> 2016-02-19 15:50:15,293 | INFO  | pool-60-thread-1 | bundle
>             | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | No
> 'SPI-Provider' Manifest header. Skipping bundle: net.lr.tasklist.ui
> 2016-02-19 15:50:15,293 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
>            | 9 - org.apache.karaf.features.core - 4.0.4 | Done.
>
> I'm using the tutorial as it was provided on github. An eclipse search of
> the word 'SPI' is empty. Is there anything I can try to solve this?
>
> Thanks in advance, and have a nice weekend!
>
> Rodolfo
>
> 2016-02-18 20:15 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:
>
>> I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0 version on
>> karaf 3 or 4.
>> I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine on
>> both versions.
>>
>> Normally you should not need to install CXF as the dosgi feature refers
>> to it.
>> If you install CXF by hand then better use the current version 3.1.5. The
>> 3.1.0 version had some issues as far as I know.
>>
>> Christian
>>
>>
>> 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
>> <ro...@gmail.com>:
>>
>>> Hi, my first time on the list :)
>>>
>>> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
>>> following some tutorials, mainly lessons 4 & 8 in
>>> <http://www.liquid-reality.de/>http://www.liquid-reality.de/, but can't
>>> make dosgi startup in karaf. I'm stucked here (the versions shown below
>>> give the less errors, others give thougher errors):
>>>
>>> karaf@root> features:chooseurl cxf-dosgi 1.4.0
>>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>>
>>> (good!)
>>>
>>> karaf@root> features:install cxf-dosgi-discovery-distributed
>>> Error executing command: Can't install feature
>>> cxf-dosgi-discovery-distributed/0.0.0:
>>> Could not start bundle
>>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>>> [216]: Unable to resolve 216.0: missing requirement [216.0]
>>> osgi.wiring.package;
>>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>> (oops, ok, let's provide cxf)...
>>>
>>> karaf@root> features:chooseurl cxf 2.7.4
>>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>>
>>> (ok)
>>>
>>> karaf@root> features:install cxf
>>>
>>> (ok, and here we go again:)
>>>
>>> karaf@root> features:install cxf-dosgi-discovery-distributed
>>> Error executing command: Can't install feature
>>> cxf-dosgi-discovery-distributed/0.0.0:
>>> Could not start bundle
>>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>>> [223]: Unable to resolve 223.0: missing requirement [223.0]
>>> osgi.wiring.package;
>>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>>
>>> karaf@root> list|grep cxf
>>> [ 197] [Active     ] [Created     ] [       ] [   50]
>>> camel-cxf-transport (2.14.1)
>>> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>>>
>>> Why? I'm on the right version, providing the right package! As said,
>>> with other versions I get other errors, mainly if I use cxf 3.1.0 or higher
>>> : google for "joda-time via two dependency chains"
>>>
>>> Any help on this will be welcome, thanks in advance.
>>>
>>> Greets. R.
>>>
>>>
>>
>>
>> --
>> --
>> 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: Frustrating DOSGI

Posted by Morgan <mo...@gmail.com>.
Rodolfo,

Can you do :

diag 53(id)

Regards,
Morgan

On 2016-02-19 15:51, Rodolfo Alcazar Portillo wrote:
> ...I just want to run this as a proof of concept, later will handle 
> versions. So, I got some advances with Karaf 4.0.4. On the server, 
> everything goes fine:
>
> karaf@root()> config:property-set -p 
> org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
> karaf@root()> config:property-set -p 
> org.apache.cxf.dosgi.discovery.zookeeper.server clientPort 2181
> karaf@root()> feature:repo-add cxf-dosgi 1.7.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
> karaf@root()> feature:install cxf-dosgi-discovery-distributed 
> cxf-dosgi-zookeeper-server
> karaf@root()> feature:repo-add 
> mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> Adding feature url 
> mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> karaf@root()> feature:install example-tasklist-persistence
> karaf@root()> list
> START LEVEL 100 , List Threshold: 50
> ID | State  | Lvl | Version        | Name
> ---------------------------------------------------------------------------------------
> 52 | Active |  80 | 1.0.0.SNAPSHOT | tasklist-model
> 53 | Active |  80 | 1.0.0.SNAPSHOT | tasklist-persistence
>
> On the client, DOSGI loads (Yes!!!, small delays!), but it remains in 
> GracePeriod:
>
> karaf@root()> config:property-set -p org.ops4j.pax.web 
> org.osgi.service.http.port 8182
> karaf@root()> config:property-set -p 
> org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
> karaf@root()> feature:repo-add cxf-dosgi 1.7.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
> karaf@root()> feature:install cxf-dosgi-discovery-distributed
> karaf@root()> feature:repo-add 
> mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> Adding feature url 
> mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
> karaf@root()> feature:install example-tasklist-ui
> karaf@root()> list|grep task
> 52 | Active      |  80 | 1.0.0.SNAPSHOT | tasklist-model
> 53 | GracePeriod |  80 | 1.0.0.SNAPSHOT | tasklist-ui
>
> So the log under data/log/karaf.log says something that I don't get:
>
> 2016-02-19 15:50:14,647 | INFO  | nsole user karaf | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Adding features: 
> example-tasklist-ui/[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]
> 2016-02-19 15:50:15,239 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Changes to perform:
> 2016-02-19 15:50:15,239 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 |   Region: root
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 |     Bundles to update:
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT with 
> mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Stopping bundles:
> 2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,241 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Updating bundles:
> 2016-02-19 15:50:15,246 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
> 2016-02-19 15:50:15,261 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Stopping bundles:
> 2016-02-19 15:50:15,261 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,262 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.ui/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,262 | INFO  | pool-60-thread-1 | BlueprintExtender 
>                | 13 - org.apache.aries.blueprint.core - 1.5.0 | 
> Destroying BlueprintContainer for bundle net.lr.tasklist.ui/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,265 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Refreshing bundles:
> 2016-02-19 15:50:15,266 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT (Bundle will be updated)
> 2016-02-19 15:50:15,266 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.ui/1.0.0.SNAPSHOT (Wired to 
> net.lr.tasklist.model/1.0.0.SNAPSHOT which is being refreshed)
> 2016-02-19 15:50:15,276 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Starting bundles:
> 2016-02-19 15:50:15,277 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,278 | INFO  | pool-60-thread-1 | bundle           
>                 | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 
> | Bundle Considered for SPI providers: net.lr.tasklist.model
> 2016-02-19 15:50:15,279 | INFO  | pool-60-thread-1 | bundle           
>                 | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 
> | No 'SPI-Provider' Manifest header. Skipping bundle: 
> net.lr.tasklist.model
> 2016-02-19 15:50:15,280 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | net.lr.tasklist.ui/1.0.0.SNAPSHOT
> 2016-02-19 15:50:15,288 | INFO  | pool-60-thread-1 | 
> InterfaceMonitorManager          | 54 - 
> cxf-dosgi-ri-discovery-distributed - 1.7.0 | updating EndpointListener 
> interests: [org.osgi.service.remoteserviceadmin.EndpointListener]
> 2016-02-19 15:50:15,291 | INFO  | pool-60-thread-1 | 
> BlueprintContainerImpl           | 13 - 
> org.apache.aries.blueprint.core - 1.5.0 | Bundle 
> net.lr.tasklist.ui/1.0.0.SNAPSHOT is waiting for dependencies 
> [(objectClass=net.lr.tasklist.model.TaskService)]
> 2016-02-19 15:50:15,292 | INFO  | pool-60-thread-1 | bundle           
>                 | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 
> | Bundle Considered for SPI providers: net.lr.tasklist.ui
> 2016-02-19 15:50:15,293 | INFO  | pool-60-thread-1 | bundle           
>                 | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 
> | No 'SPI-Provider' Manifest header. Skipping bundle: net.lr.tasklist.ui
> 2016-02-19 15:50:15,293 | INFO  | pool-60-thread-1 | 
> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core 
> - 4.0.4 | Done.
>
> I'm using the tutorial as it was provided on github. An eclipse search 
> of the word 'SPI' is empty. Is there anything I can try to solve this?
>
> Thanks in advance, and have a nice weekend!
>
> Rodolfo
>
> 2016-02-18 20:15 GMT+01:00 Christian Schneider 
> <chris@die-schneider.net <ma...@die-schneider.net>>:
>
>     I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0
>     version on karaf 3 or 4.
>     I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine
>     on both versions.
>
>     Normally you should not need to install CXF as the dosgi feature
>     refers to it.
>     If you install CXF by hand then better use the current version
>     3.1.5. The 3.1.0 version had some issues as far as I know.
>
>     Christian
>
>
>     2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo
>     <rodolfo.alcazar.portillo@gmail.com
>     <ma...@gmail.com>>:
>
>         Hi, my first time on the list :)
>
>         I'm using karaf 2.4.1 (can't change version) and want to test
>         dosgi. I'm following some tutorials, mainly lessons 4 & 8 in
>         http://www.liquid-reality.de/, but can't make dosgi startup in
>         karaf. I'm stucked here (the versions shown below give the
>         less errors, others give thougher errors):
>
>         karaf@root> features:chooseurl cxf-dosgi 1.4.0
>         Adding feature url
>         mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>
>         (good!)
>
>         karaf@root> features:install cxf-dosgi-discovery-distributed
>         Error executing command: Can't install feature
>         cxf-dosgi-discovery-distributed/0.0.0:
>         Could not start bundle
>         mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
>         feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
>         bundle cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0:
>         missing requirement [216.0] osgi.wiring.package;
>         (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
>         (oops, ok, let's provide cxf)...
>
>         karaf@root> features:chooseurl cxf 2.7.4
>         Adding feature url
>         mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>
>         (ok)
>
>         karaf@root> features:install cxf
>
>         (ok, and here we go again:)
>
>         karaf@root> features:install cxf-dosgi-discovery-distributed
>         Error executing command: Can't install feature
>         cxf-dosgi-discovery-distributed/0.0.0:
>         Could not start bundle
>         mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
>         feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
>         bundle cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0:
>         missing requirement [223.0] osgi.wiring.package;
>         (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
>         karaf@root> list|grep cxf
>         [ 197] [Active     ] [Created     ] [   ] [   50]
>         camel-cxf-transport (2.14.1)
>         [ 198] [Active     ] [Created     ] [   ] [   50] camel-cxf
>         (2.14.1)
>
>         Why? I'm on the right version, providing the right package! As
>         said, with other versions I get other errors, mainly if I use
>         cxf 3.1.0 or higher : google for "joda-time via two dependency
>         chains"
>
>         Any help on this will be welcome, thanks in advance.
>
>         Greets. R.
>
>
>
>
>     -- 
>     -- 
>     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: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
...I just want to run this as a proof of concept, later will handle
versions. So, I got some advances with Karaf 4.0.4. On the server,
everything goes fine:

karaf@root()> config:property-set -p
org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
karaf@root()> config:property-set -p
org.apache.cxf.dosgi.discovery.zookeeper.server clientPort 2181
karaf@root()> feature:repo-add cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
karaf@root()> feature:install cxf-dosgi-discovery-distributed
cxf-dosgi-zookeeper-server
karaf@root()> feature:repo-add
mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
Adding feature url mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
karaf@root()> feature:install example-tasklist-persistence
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State  | Lvl | Version        | Name
---------------------------------------------------------------------------------------
52 | Active |  80 | 1.0.0.SNAPSHOT | tasklist-model
53 | Active |  80 | 1.0.0.SNAPSHOT | tasklist-persistence

On the client, DOSGI loads (Yes!!!, small delays!), but it remains in
GracePeriod:

karaf@root()> config:property-set -p org.ops4j.pax.web
org.osgi.service.http.port 8182
karaf@root()> config:property-set -p
org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
karaf@root()> feature:repo-add cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
karaf@root()> feature:install cxf-dosgi-discovery-distributed
karaf@root()> feature:repo-add
mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
Adding feature url mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
karaf@root()> feature:install example-tasklist-ui
karaf@root()> list|grep task
52 | Active      |  80 | 1.0.0.SNAPSHOT | tasklist-model
53 | GracePeriod |  80 | 1.0.0.SNAPSHOT | tasklist-ui

So the log under data/log/karaf.log says something that I don't get:

2016-02-19 15:50:14,647 | INFO  | nsole user karaf | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Adding features:
example-tasklist-ui/[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]
2016-02-19 15:50:15,239 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Changes to
perform:
2016-02-19 15:50:15,239 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |   Region: root
2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |     Bundles to
update:
2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.model/1.0.0.SNAPSHOT with
mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Stopping bundles:
2016-02-19 15:50:15,240 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.model/1.0.0.SNAPSHOT
2016-02-19 15:50:15,241 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Updating bundles:
2016-02-19 15:50:15,246 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
2016-02-19 15:50:15,261 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Stopping bundles:
2016-02-19 15:50:15,261 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.model/1.0.0.SNAPSHOT
2016-02-19 15:50:15,262 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.ui/1.0.0.SNAPSHOT
2016-02-19 15:50:15,262 | INFO  | pool-60-thread-1 | BlueprintExtender
           | 13 - org.apache.aries.blueprint.core - 1.5.0 | Destroying
BlueprintContainer for bundle net.lr.tasklist.ui/1.0.0.SNAPSHOT
2016-02-19 15:50:15,265 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Refreshing
bundles:
2016-02-19 15:50:15,266 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.model/1.0.0.SNAPSHOT (Bundle will be updated)
2016-02-19 15:50:15,266 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.ui/1.0.0.SNAPSHOT (Wired to
net.lr.tasklist.model/1.0.0.SNAPSHOT which is being refreshed)
2016-02-19 15:50:15,276 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Starting bundles:
2016-02-19 15:50:15,277 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.model/1.0.0.SNAPSHOT
2016-02-19 15:50:15,278 | INFO  | pool-60-thread-1 | bundle
          | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | Bundle
Considered for SPI providers: net.lr.tasklist.model
2016-02-19 15:50:15,279 | INFO  | pool-60-thread-1 | bundle
          | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | No
'SPI-Provider' Manifest header. Skipping bundle: net.lr.tasklist.model
2016-02-19 15:50:15,280 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 |
net.lr.tasklist.ui/1.0.0.SNAPSHOT
2016-02-19 15:50:15,288 | INFO  | pool-60-thread-1 |
InterfaceMonitorManager          | 54 - cxf-dosgi-ri-discovery-distributed
- 1.7.0 | updating EndpointListener interests:
[org.osgi.service.remoteserviceadmin.EndpointListener]
2016-02-19 15:50:15,291 | INFO  | pool-60-thread-1 | BlueprintContainerImpl
          | 13 - org.apache.aries.blueprint.core - 1.5.0 | Bundle
net.lr.tasklist.ui/1.0.0.SNAPSHOT is waiting for dependencies
[(objectClass=net.lr.tasklist.model.TaskService)]
2016-02-19 15:50:15,292 | INFO  | pool-60-thread-1 | bundle
          | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | Bundle
Considered for SPI providers: net.lr.tasklist.ui
2016-02-19 15:50:15,293 | INFO  | pool-60-thread-1 | bundle
          | 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | No
'SPI-Provider' Manifest header. Skipping bundle: net.lr.tasklist.ui
2016-02-19 15:50:15,293 | INFO  | pool-60-thread-1 | FeaturesServiceImpl
           | 9 - org.apache.karaf.features.core - 4.0.4 | Done.

I'm using the tutorial as it was provided on github. An eclipse search of
the word 'SPI' is empty. Is there anything I can try to solve this?

Thanks in advance, and have a nice weekend!

Rodolfo

2016-02-18 20:15 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:

> I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0 version on
> karaf 3 or 4.
> I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine on both
> versions.
>
> Normally you should not need to install CXF as the dosgi feature refers to
> it.
> If you install CXF by hand then better use the current version 3.1.5. The
> 3.1.0 version had some issues as far as I know.
>
> Christian
>
>
> 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
> rodolfo.alcazar.portillo@gmail.com>:
>
>> Hi, my first time on the list :)
>>
>> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
>> following some tutorials, mainly lessons 4 & 8 in
>> http://www.liquid-reality.de/, but can't make dosgi startup in karaf.
>> I'm stucked here (the versions shown below give the less errors, others
>> give thougher errors):
>>
>> karaf@root> features:chooseurl cxf-dosgi 1.4.0
>> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>>
>> (good!)
>>
>> karaf@root> features:install cxf-dosgi-discovery-distributed
>> Error executing command: Can't install feature
>> cxf-dosgi-discovery-distributed/0.0.0:
>> Could not start bundle
>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>> [216]: Unable to resolve 216.0: missing requirement [216.0]
>> osgi.wiring.package;
>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>
>> (oops, ok, let's provide cxf)...
>>
>> karaf@root> features:chooseurl cxf 2.7.4
>> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>>
>> (ok)
>>
>> karaf@root> features:install cxf
>>
>> (ok, and here we go again:)
>>
>> karaf@root> features:install cxf-dosgi-discovery-distributed
>> Error executing command: Can't install feature
>> cxf-dosgi-discovery-distributed/0.0.0:
>> Could not start bundle
>> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
>> cxf-dosgi-core-1.4.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf
>> [223]: Unable to resolve 223.0: missing requirement [223.0]
>> osgi.wiring.package;
>> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>>
>> karaf@root> list|grep cxf
>> [ 197] [Active     ] [Created     ] [       ] [   50] camel-cxf-transport
>> (2.14.1)
>> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>>
>> Why? I'm on the right version, providing the right package! As said, with
>> other versions I get other errors, mainly if I use cxf 3.1.0 or higher :
>> google for "joda-time via two dependency chains"
>>
>> Any help on this will be welcome, thanks in advance.
>>
>> Greets. R.
>>
>>
>
>
> --
> --
> 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: Frustrating DOSGI

Posted by Rodolfo Alcazar Portillo <ro...@gmail.com>.
Hey Christian! Nice finding you! Thanks for the tutorials, they are really
nice. If you run for president, you have my vote :)

2016-02-18 20:15 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:
...

> I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0 version on
> karaf 3 or 4.
>

I would like, but I'm constrained to 2.4.1. I will ask my team to change
the version, but few chances. We are all old grumpy men :D


> I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine on both
> versions.
>

Mmm, I believed this was working with older versions. Maybe this should be
corrected, seems to apply to Karaf 2.2:
https://github.com/cschneider/Karaf-Tutorial/tree/master/dosgi


> Normally you should not need to install CXF as the dosgi feature refers to
> it.
>

Sadly, no. I shouldn't, but when I refer to cxf-dosgi-discovery-distributed,
Karaf asks me to provide
(&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0))).
See:

karaf@root> features:chooseurl cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features

karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature
cxf-dosgi-discovery-distributed/0.0.0:
Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0
in feature(s) cxf-dosgi-core-1.7.0: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing requirement
[317.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))

Will try another versions of Karaf. Thanks!

Rodolfo

Re: Frustrating DOSGI

Posted by Christian Schneider <ch...@die-schneider.net>.
I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0 version on
karaf 3 or 4.
I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine on both
versions.

Normally you should not need to install CXF as the dosgi feature refers to
it.
If you install CXF by hand then better use the current version 3.1.5. The
3.1.0 version had some issues as far as I know.

Christian


2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <
rodolfo.alcazar.portillo@gmail.com>:

> Hi, my first time on the list :)
>
> I'm using karaf 2.4.1 (can't change version) and want to test dosgi. I'm
> following some tutorials, mainly lessons 4 & 8 in
> http://www.liquid-reality.de/, but can't make dosgi startup in karaf. I'm
> stucked here (the versions shown below give the less errors, others give
> thougher errors):
>
> karaf@root> features:chooseurl cxf-dosgi 1.4.0
> Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
>
> (good!)
>
> karaf@root> features:install cxf-dosgi-discovery-distributed
> Error executing command: Can't install feature
> cxf-dosgi-discovery-distributed/0.0.0:
> Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0
> in feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
> cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0: missing requirement
> [216.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
> (oops, ok, let's provide cxf)...
>
> karaf@root> features:chooseurl cxf 2.7.4
> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
>
> (ok)
>
> karaf@root> features:install cxf
>
> (ok, and here we go again:)
>
> karaf@root> features:install cxf-dosgi-discovery-distributed
> Error executing command: Can't install feature
> cxf-dosgi-discovery-distributed/0.0.0:
> Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0
> in feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
> cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0: missing requirement
> [223.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
>
> karaf@root> list|grep cxf
> [ 197] [Active     ] [Created     ] [       ] [   50] camel-cxf-transport
> (2.14.1)
> [ 198] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.14.1)
>
> Why? I'm on the right version, providing the right package! As said, with
> other versions I get other errors, mainly if I use cxf 3.1.0 or higher :
> google for "joda-time via two dependency chains"
>
> Any help on this will be welcome, thanks in advance.
>
> Greets. R.
>
>


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