You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Alex Soto <al...@envieta.com> on 2020/12/07 15:40:11 UTC
Unable to install CXF feature
Hello,
On a freshly downloaded Karaf 4.3.0. I am not able to install CXF 3.4.1.
Here is the sequence:
karaf@root()> feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.4.1/xml/features
karaf@root()> feature:install cxf
Error:
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=cxf; type=karaf.feature; version="[3.4.1,3.4.1]"; filter:="(&(osgi.identity=cxf)(type=karaf.feature)(version>=3.4.1)(version<=3.4.1))" [caused by: Unable to resolve cxf/3.4.1: missing requirement [cxf/3.4.1] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.4.1,3.4.1]" [caused by: Unable to resolve cxf-http-provider/3.4.1: missing requirement [cxf-http-provider/3.4.1] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.4.1: missing requirement [cxf-http-jetty/3.4.1] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]]]
Any idea why?
Best regards,
Alex soto
Re: Unable to install CXF feature
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,
Yes, the jetty feature has been removed from Karaf to avoid mis-alignement between Karaf, Pax Web and Felix.
I will update my blog post ;)
Thanks,
Regards
JB
> Le 8 déc. 2020 à 16:44, Alex Soto <al...@envieta.com> a écrit :
>
> Thank you JB, I will take a look.
>
> I was following your blog entry
>
> http://blog.nanthrax.net/?p=101 <http://blog.nanthrax.net/?p=101>
>
> Where a full install of CXF is suggested, perhaps something changed overtime.
>
> Best regards,
> Alex soto
>
>
>
>
>> On Dec 8, 2020, at 10:11 AM, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>
>> Yes, that’s normal: you should not install the "meta global CXF" feature but prefer to use the CXF features you want to use.
>>
>> You can take a look on the SOAP and REST Karaf examples which use CXF:
>>
>> https://github.com/apache/karaf/blob/master/examples/karaf-soap-example/karaf-soap-example-features/src/main/feature/feature.xml#L35 <https://github.com/apache/karaf/blob/master/examples/karaf-soap-example/karaf-soap-example-features/src/main/feature/feature.xml#L35>
>>
>> https://github.com/apache/karaf/blob/master/examples/karaf-rest-example/karaf-rest-example-features/src/main/feature/feature.xml#L32 <https://github.com/apache/karaf/blob/master/examples/karaf-rest-example/karaf-rest-example-features/src/main/feature/feature.xml#L32>
>>
>> Regards
>> JB
>>
>>> Le 7 déc. 2020 à 16:40, Alex Soto <alex.soto@envieta.com <ma...@envieta.com>> a écrit :
>>>
>>> Hello,
>>>
>>> On a freshly downloaded Karaf 4.3.0. I am not able to install CXF 3.4.1.
>>> Here is the sequence:
>>>
>>> karaf@root()> feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.4.1/xml/features
>>> karaf@root()> feature:install cxf
>>>
>>> Error:
>>>
>>> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=cxf; type=karaf.feature; version="[3.4.1,3.4.1]"; filter:="(&(osgi.identity=cxf)(type=karaf.feature)(version>=3.4.1)(version<=3.4.1))" [caused by: Unable to resolve cxf/3.4.1: missing requirement [cxf/3.4.1] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.4.1,3.4.1]" [caused by: Unable to resolve cxf-http-provider/3.4.1: missing requirement [cxf-http-provider/3.4.1] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.4.1: missing requirement [cxf-http-jetty/3.4.1] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]]]
>>>
>>>
>>> Any idea why?
>>>
>>> Best regards,
>>> Alex soto
>>>
>>>
>>>
>>>
>>
>
Re: Unable to install CXF feature
Posted by Alex Soto <al...@envieta.com>.
Thank you JB, I will take a look.
I was following your blog entry
http://blog.nanthrax.net/?p=101
Where a full install of CXF is suggested, perhaps something changed overtime.
Best regards,
Alex soto
> On Dec 8, 2020, at 10:11 AM, Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
>
> Yes, that’s normal: you should not install the "meta global CXF" feature but prefer to use the CXF features you want to use.
>
> You can take a look on the SOAP and REST Karaf examples which use CXF:
>
> https://github.com/apache/karaf/blob/master/examples/karaf-soap-example/karaf-soap-example-features/src/main/feature/feature.xml#L35 <https://github.com/apache/karaf/blob/master/examples/karaf-soap-example/karaf-soap-example-features/src/main/feature/feature.xml#L35>
>
> https://github.com/apache/karaf/blob/master/examples/karaf-rest-example/karaf-rest-example-features/src/main/feature/feature.xml#L32 <https://github.com/apache/karaf/blob/master/examples/karaf-rest-example/karaf-rest-example-features/src/main/feature/feature.xml#L32>
>
> Regards
> JB
>
>> Le 7 déc. 2020 à 16:40, Alex Soto <alex.soto@envieta.com <ma...@envieta.com>> a écrit :
>>
>> Hello,
>>
>> On a freshly downloaded Karaf 4.3.0. I am not able to install CXF 3.4.1.
>> Here is the sequence:
>>
>> karaf@root()> feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.4.1/xml/features
>> karaf@root()> feature:install cxf
>>
>> Error:
>>
>> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=cxf; type=karaf.feature; version="[3.4.1,3.4.1]"; filter:="(&(osgi.identity=cxf)(type=karaf.feature)(version>=3.4.1)(version<=3.4.1))" [caused by: Unable to resolve cxf/3.4.1: missing requirement [cxf/3.4.1] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.4.1,3.4.1]" [caused by: Unable to resolve cxf-http-provider/3.4.1: missing requirement [cxf-http-provider/3.4.1] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.4.1: missing requirement [cxf-http-jetty/3.4.1] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]]]
>>
>>
>> Any idea why?
>>
>> Best regards,
>> Alex soto
>>
>>
>>
>>
>
Re: Unable to install CXF feature
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Yes, that’s normal: you should not install the "meta global CXF" feature but prefer to use the CXF features you want to use.
You can take a look on the SOAP and REST Karaf examples which use CXF:
https://github.com/apache/karaf/blob/master/examples/karaf-soap-example/karaf-soap-example-features/src/main/feature/feature.xml#L35 <https://github.com/apache/karaf/blob/master/examples/karaf-soap-example/karaf-soap-example-features/src/main/feature/feature.xml#L35>
https://github.com/apache/karaf/blob/master/examples/karaf-rest-example/karaf-rest-example-features/src/main/feature/feature.xml#L32 <https://github.com/apache/karaf/blob/master/examples/karaf-rest-example/karaf-rest-example-features/src/main/feature/feature.xml#L32>
Regards
JB
> Le 7 déc. 2020 à 16:40, Alex Soto <al...@envieta.com> a écrit :
>
> Hello,
>
> On a freshly downloaded Karaf 4.3.0. I am not able to install CXF 3.4.1.
> Here is the sequence:
>
> karaf@root()> feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.4.1/xml/features
> karaf@root()> feature:install cxf
>
> Error:
>
> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=cxf; type=karaf.feature; version="[3.4.1,3.4.1]"; filter:="(&(osgi.identity=cxf)(type=karaf.feature)(version>=3.4.1)(version<=3.4.1))" [caused by: Unable to resolve cxf/3.4.1: missing requirement [cxf/3.4.1] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.4.1,3.4.1]" [caused by: Unable to resolve cxf-http-provider/3.4.1: missing requirement [cxf-http-provider/3.4.1] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.4.1: missing requirement [cxf-http-jetty/3.4.1] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]]]
>
>
> Any idea why?
>
> Best regards,
> Alex soto
>
>
>
>