Re: Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Jean-Baptiste Onofre
Thanks, I gonna fix that for 3.1.1.

Regards
JB

> Le 28 févr. 2020 à 17:35, Gerald Kallas  a écrit :
> 
> Done.
> 
> https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-14629
> 
>> Andrea Cosentino  hat am 28. Februar 2020 17:19 
>> geschrieben:
>> 
>> 
>> Can you please report this on the Camel JIRA?
>> 
>> Just reproduced.
>> 
>> Il giorno ven 28 feb 2020 alle ore 17:15 Gerald Kallas 
>> ha scritto:
>> 
>>> I'm still using Java 8
>>> 
>>> $ java -version
>>> openjdk version "1.8.0_222"
>>> OpenJDK Runtime Environment (build 1.8.0_222-b10)
>>> OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
>>> 
>>> Tried with Karaf 4.2.8, same error.
>>> 
 Jean-Baptiste Onofre  hat am 28. Februar 2020 16:54
>>> geschrieben:
 
 
 Hi,
 
 That’s normal due to JDK 9+.
 
 Previously JAXB was provided by the JDK, but not anymore. So, you have
>>> to add the JAXB bundle before installed camel-jackson.
 
 I’m working on Camel features to have condition depending of the JDK
>>> version.
 
 Regards
 JB
 
> Le 28 févr. 2020 à 16:40, Gerald Kallas  a
>>> écrit :
> 
> I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7
>>> w/ Camel 3.1.0.
> 
> While executing these commands
> 
> 
> karaf@root()> feature:repo-add hawtio 2.9.1
> Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
> karaf@root()> feature:repo-add activemq 5.15.11
> Adding feature url
>>> mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
> karaf@root()> feature:repo-add camel 3.1.0
> Adding feature url
>>> mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
> karaf@root()> feature:install webconsole hawtio activemq-broker-noweb
>>> camel camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp
>>> camel-jackson camel-jsonpath camel-zipfile camel-velocity camel-groovy
> 
> I'm getting the following error
> 
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve
>>> root: missing requirement [root] osgi.identity;
>>> osgi.identity=camel-jackson; type=karaf.feature; version="[3.1.0,3.1.0]";
>>> filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
>>> [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement
>>> [camel-jackson/3.1.0] osgi.identity;
>>> osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle;
>>> version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to
>>> resolve org.apache.camel.camel-jackson/3.1.0: missing requirement
>>> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
>>> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
>>> [caused by: Unable to resolve
>>> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
>>> missing requirement
>>> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
>>> osgi.wiring.package; filter:="(&(osgi.wiring.package=
> javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
> at
>>> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> at
>>> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
> at
>>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
> at
>>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
> at
>>> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
> at
>>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
> at
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> at
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
>>> resolve camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0]
>>> osgi.identity; osgi.identity=org.apache.camel.camel-jackson;
>>> type=osgi.bundle; version="[3.1.0,3.1.0]"; resolution:=mandatory [caused
>>> by: Unable to resolve org.apache.camel.camel-jackson/3.1.0: missing
>>> requirement [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
>>> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
>>> [caused by: Unable to resolve
>>> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
>>> missing requirement
>>> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
>>> osgi.wiring.package;
>>> 

Re: Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Gerald Kallas
Done.

https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-14629

> Andrea Cosentino  hat am 28. Februar 2020 17:19 
> geschrieben:
> 
>  
> Can you please report this on the Camel JIRA?
> 
> Just reproduced.
> 
> Il giorno ven 28 feb 2020 alle ore 17:15 Gerald Kallas 
> ha scritto:
> 
> > I'm still using Java 8
> >
> > $ java -version
> > openjdk version "1.8.0_222"
> > OpenJDK Runtime Environment (build 1.8.0_222-b10)
> > OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
> >
> > Tried with Karaf 4.2.8, same error.
> >
> > > Jean-Baptiste Onofre  hat am 28. Februar 2020 16:54
> > geschrieben:
> > >
> > >
> > > Hi,
> > >
> > > That’s normal due to JDK 9+.
> > >
> > > Previously JAXB was provided by the JDK, but not anymore. So, you have
> > to add the JAXB bundle before installed camel-jackson.
> > >
> > > I’m working on Camel features to have condition depending of the JDK
> > version.
> > >
> > > Regards
> > > JB
> > >
> > > > Le 28 févr. 2020 à 16:40, Gerald Kallas  a
> > écrit :
> > > >
> > > > I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7
> > w/ Camel 3.1.0.
> > > >
> > > > While executing these commands
> > > >
> > > >
> > > > karaf@root()> feature:repo-add hawtio 2.9.1
> > > > Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
> > > > karaf@root()> feature:repo-add activemq 5.15.11
> > > > Adding feature url
> > mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
> > > > karaf@root()> feature:repo-add camel 3.1.0
> > > > Adding feature url
> > mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
> > > > karaf@root()> feature:install webconsole hawtio activemq-broker-noweb
> > camel camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp
> > camel-jackson camel-jsonpath camel-zipfile camel-velocity camel-groovy
> > > >
> > > > I'm getting the following error
> > > >
> > > > org.apache.felix.resolver.reason.ReasonException: Unable to resolve
> > root: missing requirement [root] osgi.identity;
> > osgi.identity=camel-jackson; type=karaf.feature; version="[3.1.0,3.1.0]";
> > filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
> > [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement
> > [camel-jackson/3.1.0] osgi.identity;
> > osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle;
> > version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to
> > resolve org.apache.camel.camel-jackson/3.1.0: missing requirement
> > [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> > filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> > [caused by: Unable to resolve
> > com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> > missing requirement
> > [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> > osgi.wiring.package; filter:="(&(osgi.wiring.package=
> > > > javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
> > > > at
> > org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> > > > at
> > org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
> > > > at
> > org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
> > > > at
> > org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
> > > > at
> > org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
> > > > at
> > org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
> > > > at
> > org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> > > > at
> > org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> > > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > > > at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> > > > at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> > > > at java.lang.Thread.run(Thread.java:748)
> > > > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> > resolve camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0]
> > osgi.identity; osgi.identity=org.apache.camel.camel-jackson;
> > type=osgi.bundle; version="[3.1.0,3.1.0]"; resolution:=mandatory [caused
> > by: Unable to resolve org.apache.camel.camel-jackson/3.1.0: missing
> > requirement [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> > filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> > [caused by: Unable to resolve
> > com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> > missing requirement
> > [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> > osgi.wiring.package;
> > 

Re: Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Andrea Cosentino
Can you please report this on the Camel JIRA?

Just reproduced.

Il giorno ven 28 feb 2020 alle ore 17:15 Gerald Kallas 
ha scritto:

> I'm still using Java 8
>
> $ java -version
> openjdk version "1.8.0_222"
> OpenJDK Runtime Environment (build 1.8.0_222-b10)
> OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
>
> Tried with Karaf 4.2.8, same error.
>
> > Jean-Baptiste Onofre  hat am 28. Februar 2020 16:54
> geschrieben:
> >
> >
> > Hi,
> >
> > That’s normal due to JDK 9+.
> >
> > Previously JAXB was provided by the JDK, but not anymore. So, you have
> to add the JAXB bundle before installed camel-jackson.
> >
> > I’m working on Camel features to have condition depending of the JDK
> version.
> >
> > Regards
> > JB
> >
> > > Le 28 févr. 2020 à 16:40, Gerald Kallas  a
> écrit :
> > >
> > > I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7
> w/ Camel 3.1.0.
> > >
> > > While executing these commands
> > >
> > >
> > > karaf@root()> feature:repo-add hawtio 2.9.1
> > > Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
> > > karaf@root()> feature:repo-add activemq 5.15.11
> > > Adding feature url
> mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
> > > karaf@root()> feature:repo-add camel 3.1.0
> > > Adding feature url
> mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
> > > karaf@root()> feature:install webconsole hawtio activemq-broker-noweb
> camel camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp
> camel-jackson camel-jsonpath camel-zipfile camel-velocity camel-groovy
> > >
> > > I'm getting the following error
> > >
> > > org.apache.felix.resolver.reason.ReasonException: Unable to resolve
> root: missing requirement [root] osgi.identity;
> osgi.identity=camel-jackson; type=karaf.feature; version="[3.1.0,3.1.0]";
> filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
> [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement
> [camel-jackson/3.1.0] osgi.identity;
> osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle;
> version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to
> resolve org.apache.camel.camel-jackson/3.1.0: missing requirement
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> missing requirement
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> osgi.wiring.package; filter:="(&(osgi.wiring.package=
> > > javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
> > > at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> > > at
> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
> > > at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
> > > at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
> > > at
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
> > > at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
> > > at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> > > at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > > at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> > > at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> > > at java.lang.Thread.run(Thread.java:748)
> > > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0]
> osgi.identity; osgi.identity=org.apache.camel.camel-jackson;
> type=osgi.bundle; version="[3.1.0,3.1.0]"; resolution:=mandatory [caused
> by: Unable to resolve org.apache.camel.camel-jackson/3.1.0: missing
> requirement [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> missing requirement
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]
> > > at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> > > ... 12 more
> > > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve org.apache.camel.camel-jackson/3.1.0: missing requirement
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> 

Re: Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Gerald Kallas
I'm still using Java 8

$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Tried with Karaf 4.2.8, same error.

> Jean-Baptiste Onofre  hat am 28. Februar 2020 16:54 
> geschrieben:
> 
>  
> Hi,
> 
> That’s normal due to JDK 9+.
> 
> Previously JAXB was provided by the JDK, but not anymore. So, you have to add 
> the JAXB bundle before installed camel-jackson.
> 
> I’m working on Camel features to have condition depending of the JDK version.
> 
> Regards
> JB
> 
> > Le 28 févr. 2020 à 16:40, Gerald Kallas  a écrit :
> > 
> > I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7 w/ 
> > Camel 3.1.0.
> > 
> > While executing these commands
> > 
> > 
> > karaf@root()> feature:repo-add hawtio 2.9.1
> > Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
> > karaf@root()> feature:repo-add activemq 5.15.11
> > Adding feature url 
> > mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
> > karaf@root()> feature:repo-add camel 3.1.0
> > Adding feature url 
> > mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
> > karaf@root()> feature:install webconsole hawtio activemq-broker-noweb camel 
> > camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp 
> > camel-jackson camel-jsonpath camel-zipfile camel-velocity camel-groovy
> > 
> > I'm getting the following error
> > 
> > org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
> > missing requirement [root] osgi.identity; osgi.identity=camel-jackson; 
> > type=karaf.feature; version="[3.1.0,3.1.0]"; 
> > filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
> >  [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement 
> > [camel-jackson/3.1.0] osgi.identity; 
> > osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle; 
> > version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to 
> > resolve org.apache.camel.camel-jackson/3.1.0: missing requirement 
> > [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
> > filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> >  [caused by: Unable to resolve 
> > com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: 
> > missing requirement 
> > [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
> > osgi.wiring.package; filter:="(&(osgi.wiring.package=
> > javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
> > at 
> > org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> > at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
> > at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
> > at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
> > at 
> > org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
> > at 
> > org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
> > at 
> > org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> > at 
> > org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > at 
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> > at 
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> > at java.lang.Thread.run(Thread.java:748)
> > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
> > resolve camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0] 
> > osgi.identity; osgi.identity=org.apache.camel.camel-jackson; 
> > type=osgi.bundle; version="[3.1.0,3.1.0]"; resolution:=mandatory [caused 
> > by: Unable to resolve org.apache.camel.camel-jackson/3.1.0: missing 
> > requirement [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
> > filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> >  [caused by: Unable to resolve 
> > com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: 
> > missing requirement 
> > [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
> > osgi.wiring.package; 
> > filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]
> > at 
> > org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> > ... 12 more
> > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
> > resolve org.apache.camel.camel-jackson/3.1.0: missing requirement 
> > [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
> > filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> >  [caused by: 

Re: Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Jean-Baptiste Onofre
Hi,

That’s normal due to JDK 9+.

Previously JAXB was provided by the JDK, but not anymore. So, you have to add 
the JAXB bundle before installed camel-jackson.

I’m working on Camel features to have condition depending of the JDK version.

Regards
JB

> Le 28 févr. 2020 à 16:40, Gerald Kallas  a écrit :
> 
> I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7 w/ 
> Camel 3.1.0.
> 
> While executing these commands
> 
> 
> karaf@root()> feature:repo-add hawtio 2.9.1
> Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
> karaf@root()> feature:repo-add activemq 5.15.11
> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
> karaf@root()> feature:repo-add camel 3.1.0
> Adding feature url mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
> karaf@root()> feature:install webconsole hawtio activemq-broker-noweb camel 
> camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp 
> camel-jackson camel-jsonpath camel-zipfile camel-velocity camel-groovy
> 
> I'm getting the following error
> 
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
> missing requirement [root] osgi.identity; osgi.identity=camel-jackson; 
> type=karaf.feature; version="[3.1.0,3.1.0]"; 
> filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
>  [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement 
> [camel-jackson/3.1.0] osgi.identity; 
> osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle; 
> version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to resolve 
> org.apache.camel.camel-jackson/3.1.0: missing requirement 
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
>  [caused by: Unable to resolve 
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
> requirement 
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
> osgi.wiring.package; filter:="(&(osgi.wiring.package=
> javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
> at 
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
> at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
> at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
> at 
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
> at 
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
> at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
> resolve camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0] 
> osgi.identity; osgi.identity=org.apache.camel.camel-jackson; 
> type=osgi.bundle; version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: 
> Unable to resolve org.apache.camel.camel-jackson/3.1.0: missing requirement 
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
>  [caused by: Unable to resolve 
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
> requirement 
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
> osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]
> at 
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ... 12 more
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
> resolve org.apache.camel.camel-jackson/3.1.0: missing requirement 
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
>  [caused by: Unable to resolve 
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
> requirement 
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
> osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]
> at 
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ... 13 more
> Caused by: 

Re: Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Andrea Cosentino
You need to use Karaf 4.2.8.

Il giorno ven 28 feb 2020 alle ore 16:40 Gerald Kallas 
ha scritto:

> I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7 w/
> Camel 3.1.0.
>
> While executing these commands
>
>
> karaf@root()> feature:repo-add hawtio 2.9.1
> Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
> karaf@root()> feature:repo-add activemq 5.15.11
> Adding feature url
> mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
> karaf@root()> feature:repo-add camel 3.1.0
> Adding feature url
> mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
> karaf@root()> feature:install webconsole hawtio activemq-broker-noweb
> camel camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp
> camel-jackson camel-jsonpath camel-zipfile camel-velocity camel-groovy
>
> I'm getting the following error
>
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root:
> missing requirement [root] osgi.identity; osgi.identity=camel-jackson;
> type=karaf.feature; version="[3.1.0,3.1.0]";
> filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
> [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement
> [camel-jackson/3.1.0] osgi.identity;
> osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle;
> version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to
> resolve org.apache.camel.camel-jackson/3.1.0: missing requirement
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> missing requirement
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> osgi.wiring.package; filter:="(&(osgi.wiring.package=
>  javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
> at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
> at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
> at
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
> at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0]
> osgi.identity; osgi.identity=org.apache.camel.camel-jackson;
> type=osgi.bundle; version="[3.1.0,3.1.0]"; resolution:=mandatory [caused
> by: Unable to resolve org.apache.camel.camel-jackson/3.1.0: missing
> requirement [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> missing requirement
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ... 12 more
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve org.apache.camel.camel-jackson/3.1.0: missing requirement
> [org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> missing requirement
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ... 13 more
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve
> com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2:
> missing requirement
> [com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2]
> osgi.wiring.package;
> 

Install of camel-jackson on Karaf 4.2.7 w/ Camel 3.1.0 causes an error (same worked with Karaf 4.2.7 w/ Camel 3.0.1)

2020-02-28 Thread Gerald Kallas
I tried to upgrade from Karaf 4.2.7 w/ Camel 3.0.1 towards Karaf 4.2.7 w/ Camel 
3.1.0.

While executing these commands


karaf@root()> feature:repo-add hawtio 2.9.1
Adding feature url mvn:io.hawt/hawtio-karaf/2.9.1/xml/features
karaf@root()> feature:repo-add activemq 5.15.11
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
karaf@root()> feature:repo-add camel 3.1.0
Adding feature url mvn:org.apache.camel.karaf/apache-camel/3.1.0/xml/features
karaf@root()> feature:install webconsole hawtio activemq-broker-noweb camel 
camel-jms jms camel-http camel-jetty camel-swagger-java camel-ftp camel-jackson 
camel-jsonpath camel-zipfile camel-velocity camel-groovy

I'm getting the following error

org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
missing requirement [root] osgi.identity; osgi.identity=camel-jackson; 
type=karaf.feature; version="[3.1.0,3.1.0]"; 
filter:="(&(osgi.identity=camel-jackson)(type=karaf.feature)(version>=3.1.0)(version<=3.1.0))"
 [caused by: Unable to resolve camel-jackson/3.1.0: missing requirement 
[camel-jackson/3.1.0] osgi.identity; 
osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle; 
version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to resolve 
org.apache.camel.camel-jackson/3.1.0: missing requirement 
[org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
 [caused by: Unable to resolve 
com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
requirement 
[com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
osgi.wiring.package; filter:="(&(osgi.wiring.package=
 javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
camel-jackson/3.1.0: missing requirement [camel-jackson/3.1.0] osgi.identity; 
osgi.identity=org.apache.camel.camel-jackson; type=osgi.bundle; 
version="[3.1.0,3.1.0]"; resolution:=mandatory [caused by: Unable to resolve 
org.apache.camel.camel-jackson/3.1.0: missing requirement 
[org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
 [caused by: Unable to resolve 
com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
requirement 
[com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
osgi.wiring.package; 
filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
org.apache.camel.camel-jackson/3.1.0: missing requirement 
[org.apache.camel.camel-jackson/3.1.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=com.fasterxml.jackson.module.jaxb)(version>=2.9.0)(!(version>=3.0.0)))"
 [caused by: Unable to resolve 
com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
requirement 
[com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
osgi.wiring.package; 
filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2: missing 
requirement 
[com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.10.2] 
osgi.wiring.package; 
filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 14 more

Any hints what might be the root cause and solution for?

Tx
- Gerald