You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by "z8sbk@yahoo.com.ar.INVALID" <z8...@yahoo.com.ar.INVALID> on 2022/08/30 16:37:03 UTC

problem installing camel-spring-redis in Apache Karaf 4.2.15

Hi, I'm trying to install the camel-spring-redis module, but it's throwing a dependency error:
karaf@root()> feature:install camel-spring-redis

Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature; version="[2.24.2,2.24.2]"; filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))" [caused by: Unable to resolve camel-spring-redis/2.24.2: missing requirement [camel-spring-redis/2.24.2] osgi.identity; osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle; version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]

I've already installed almost all spring features, but nothing seems to export org.springframework.data.geo. I'm using camel 2.24.2.
Could anybody install camel-spring-redis on karaf?Thanks in advanced 

Re: problem installing camel-spring-redis in Apache Karaf 4.2.15

Posted by "z8sbk@yahoo.com.ar.INVALID" <z8...@yahoo.com.ar.INVALID>.
 Just in case someone is trying the same, I could install camel-spring-redis using a camel 3 repo: https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.7.7/apache-camel-3.7.7-features.xml, that is:
karaf@root()> repo-add mvn:org.apache.camel.karaf/apache-camel/3.7.7/xml/features
karaf@root()>  feature:install camel-spring-redis

(That 3.7.7 is, apparently, the last repo that has this particular feature)
We couldn't install it using 2.24.2..
Cheers.
    El miércoles, 31 de agosto de 2022, 14:31:47 ART, z8sbk@yahoo.com.ar.INVALID <z8...@yahoo.com.ar.invalid> escribió:  
 
  Hi JB, Apparently, that missing org.springframework.data.geo package is in org.apache.servicemix.bundles.spring-data-commons/, but requires a version under 2.x. When I use 1.x bundles, It can't activate the bundle and remains in "Installed" since there are a lot of dependencies that can't resolve like com.google.common.base, com.querydsl.core, org.springframework.aop and a lot more (don't know If I could send the entire trace here).
If I use a 2.x version, spring-data-commons bundle can start and actually export that required package by camel-spring-redis:
karaf@root()> find-class geo
Apache ServiceMix :: Bundles :: spring-data-commons (289)org/springframework/data/geo/
But since the feature requires (&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]] still can't start. Any recommendations?
Thanks in advanced.

    El miércoles, 31 de agosto de 2022, 08:37:43 ART, Jean-Baptiste Onofré <jb...@nanthrax.net> escribió:  
 
 There's no spring-data feature, only spring-data bundles:

https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-commons/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-keyvalue/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-neo4j/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-redis/

I think it makes sense to create spring-data "standard" feature. In
the meantime, you can install the bundles directly.

Regards
JB

On Wed, Aug 31, 2022 at 1:09 PM z8sbk@yahoo.com.ar.INVALID
<z8...@yahoo.com.ar.invalid> wrote:
>
>  Hi JB, I can't see a spring-data feature to install, ¿am I missing something?Thanks in advanced.
>    El miércoles, 31 de agosto de 2022, 03:04:50 ART, Jean-Baptiste Onofré <jb...@nanthrax.net> escribió:
>
>  Hi,
>
> It seems the missing part in spring-data bundle. Let me check the
> packages exported by the corresponding SMX bundle.
>
> Regards
> JB
>
> On Tue, Aug 30, 2022 at 6:37 PM z8sbk@yahoo.com.ar.INVALID
> <z8...@yahoo.com.ar.invalid> wrote:
> >
> > Hi, I'm trying to install the camel-spring-redis module, but it's throwing a dependency error:
> > karaf@root()> feature:install camel-spring-redis
> >
> > Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature; version="[2.24.2,2.24.2]"; filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))" [caused by: Unable to resolve camel-spring-redis/2.24.2: missing requirement [camel-spring-redis/2.24.2] osgi.identity; osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle; version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
> >
> > I've already installed almost all spring features, but nothing seems to export org.springframework.data.geo. I'm using camel 2.24.2.
> > Could anybody install camel-spring-redis on karaf?Thanks in advanced
>
    

Re: problem installing camel-spring-redis in Apache Karaf 4.2.15

Posted by "z8sbk@yahoo.com.ar.INVALID" <z8...@yahoo.com.ar.INVALID>.
 Hi JB, Apparently, that missing org.springframework.data.geo package is in org.apache.servicemix.bundles.spring-data-commons/, but requires a version under 2.x. When I use 1.x bundles, It can't activate the bundle and remains in "Installed" since there are a lot of dependencies that can't resolve like com.google.common.base, com.querydsl.core, org.springframework.aop and a lot more (don't know If I could send the entire trace here).
If I use a 2.x version, spring-data-commons bundle can start and actually export that required package by camel-spring-redis:
karaf@root()> find-class geo
Apache ServiceMix :: Bundles :: spring-data-commons (289)org/springframework/data/geo/
But since the feature requires (&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]] still can't start. Any recommendations?
Thanks in advanced.

    El miércoles, 31 de agosto de 2022, 08:37:43 ART, Jean-Baptiste Onofré <jb...@nanthrax.net> escribió:  
 
 There's no spring-data feature, only spring-data bundles:

https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-commons/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-keyvalue/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-neo4j/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-redis/

I think it makes sense to create spring-data "standard" feature. In
the meantime, you can install the bundles directly.

Regards
JB

On Wed, Aug 31, 2022 at 1:09 PM z8sbk@yahoo.com.ar.INVALID
<z8...@yahoo.com.ar.invalid> wrote:
>
>  Hi JB, I can't see a spring-data feature to install, ¿am I missing something?Thanks in advanced.
>    El miércoles, 31 de agosto de 2022, 03:04:50 ART, Jean-Baptiste Onofré <jb...@nanthrax.net> escribió:
>
>  Hi,
>
> It seems the missing part in spring-data bundle. Let me check the
> packages exported by the corresponding SMX bundle.
>
> Regards
> JB
>
> On Tue, Aug 30, 2022 at 6:37 PM z8sbk@yahoo.com.ar.INVALID
> <z8...@yahoo.com.ar.invalid> wrote:
> >
> > Hi, I'm trying to install the camel-spring-redis module, but it's throwing a dependency error:
> > karaf@root()> feature:install camel-spring-redis
> >
> > Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature; version="[2.24.2,2.24.2]"; filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))" [caused by: Unable to resolve camel-spring-redis/2.24.2: missing requirement [camel-spring-redis/2.24.2] osgi.identity; osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle; version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
> >
> > I've already installed almost all spring features, but nothing seems to export org.springframework.data.geo. I'm using camel 2.24.2.
> > Could anybody install camel-spring-redis on karaf?Thanks in advanced
>
  

Re: problem installing camel-spring-redis in Apache Karaf 4.2.15

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
There's no spring-data feature, only spring-data bundles:

https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-commons/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-keyvalue/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-neo4j/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-redis/

I think it makes sense to create spring-data "standard" feature. In
the meantime, you can install the bundles directly.

Regards
JB

On Wed, Aug 31, 2022 at 1:09 PM z8sbk@yahoo.com.ar.INVALID
<z8...@yahoo.com.ar.invalid> wrote:
>
>  Hi JB, I can't see a spring-data feature to install, ¿am I missing something?Thanks in advanced.
>     El miércoles, 31 de agosto de 2022, 03:04:50 ART, Jean-Baptiste Onofré <jb...@nanthrax.net> escribió:
>
>  Hi,
>
> It seems the missing part in spring-data bundle. Let me check the
> packages exported by the corresponding SMX bundle.
>
> Regards
> JB
>
> On Tue, Aug 30, 2022 at 6:37 PM z8sbk@yahoo.com.ar.INVALID
> <z8...@yahoo.com.ar.invalid> wrote:
> >
> > Hi, I'm trying to install the camel-spring-redis module, but it's throwing a dependency error:
> > karaf@root()> feature:install camel-spring-redis
> >
> > Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature; version="[2.24.2,2.24.2]"; filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))" [caused by: Unable to resolve camel-spring-redis/2.24.2: missing requirement [camel-spring-redis/2.24.2] osgi.identity; osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle; version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
> >
> > I've already installed almost all spring features, but nothing seems to export org.springframework.data.geo. I'm using camel 2.24.2.
> > Could anybody install camel-spring-redis on karaf?Thanks in advanced
>

Re: problem installing camel-spring-redis in Apache Karaf 4.2.15

Posted by "z8sbk@yahoo.com.ar.INVALID" <z8...@yahoo.com.ar.INVALID>.
 Hi JB, I can't see a spring-data feature to install, ¿am I missing something?Thanks in advanced.
    El miércoles, 31 de agosto de 2022, 03:04:50 ART, Jean-Baptiste Onofré <jb...@nanthrax.net> escribió:  
 
 Hi,

It seems the missing part in spring-data bundle. Let me check the
packages exported by the corresponding SMX bundle.

Regards
JB

On Tue, Aug 30, 2022 at 6:37 PM z8sbk@yahoo.com.ar.INVALID
<z8...@yahoo.com.ar.invalid> wrote:
>
> Hi, I'm trying to install the camel-spring-redis module, but it's throwing a dependency error:
> karaf@root()> feature:install camel-spring-redis
>
> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature; version="[2.24.2,2.24.2]"; filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))" [caused by: Unable to resolve camel-spring-redis/2.24.2: missing requirement [camel-spring-redis/2.24.2] osgi.identity; osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle; version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
>
> I've already installed almost all spring features, but nothing seems to export org.springframework.data.geo. I'm using camel 2.24.2.
> Could anybody install camel-spring-redis on karaf?Thanks in advanced
  

Re: problem installing camel-spring-redis in Apache Karaf 4.2.15

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

It seems the missing part in spring-data bundle. Let me check the
packages exported by the corresponding SMX bundle.

Regards
JB

On Tue, Aug 30, 2022 at 6:37 PM z8sbk@yahoo.com.ar.INVALID
<z8...@yahoo.com.ar.invalid> wrote:
>
> Hi, I'm trying to install the camel-spring-redis module, but it's throwing a dependency error:
> karaf@root()> feature:install camel-spring-redis
>
> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature; version="[2.24.2,2.24.2]"; filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))" [caused by: Unable to resolve camel-spring-redis/2.24.2: missing requirement [camel-spring-redis/2.24.2] osgi.identity; osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle; version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
>
> I've already installed almost all spring features, but nothing seems to export org.springframework.data.geo. I'm using camel 2.24.2.
> Could anybody install camel-spring-redis on karaf?Thanks in advanced