Hi Claus, No i dont think I need it. All other camel component work very well and can logs, Only camel-dns react like that.
At this point To workaround this, I uninstall Apache ServiceMix :: Bundles :: dnsjavaorg.apache.servicemix.bundles.dnsjava 3.3.1.1 Download jar files org.apache.servicemix.bundles.dnsjava-3.3.1_1.jar Unzip jar Modify manifest to include in it, resolution:=optional,org.slf4j;version="[1.7,2) Zip again Copy the new jar in the deploy directory on karaf. Now camel-dns works well without logging error. The same things happend with Camel 3.7.1 on April 2021 And at this time you write: --------- De : Claus Ibsen <[email protected]> À : <[email protected]> Date : 2021-04-30 03:30 Objet : Re: Camel-DNS / Camel 3.7.1 in Karaf 4.2.10 / Hi It smells like that OSGi bundle org.apache.servicemix.bundles.dnsjava does not have correct OSGi import in its MANIFEST.MF. --------- And Jean-Baptiste Onofre Says, ------ Hi, The problem is in the dnsjava bundle: slf4j optional import is missing. I'm fixing that and include in next ServiceMix bundle release. ------ And create an issue to resolve this: issues.apache.org/jira/browse/SM-4761 Thank's -----Message d'origine----- De : Claus Ibsen <[email protected]> Envoyé : 18 janvier 2022 12:32 À : [email protected] Objet : Re: camel-DNS / Camel 3.11.5 / should import org.slf4j* optional Hi You need to have slf4j-api installed in karaf as camel uses slf4j-api for its logging. On Tue, Jan 18, 2022 at 5:20 PM Daniel Langevin <[email protected]> wrote: > > Hi, > > I'm on Karaf OSGI v. 4.3.3 > > recently upgrade my environment to CAMEL.3.11.5 and and old BUG come back > with CAMEL-DNS. > > java.lang.ClassNotFoundException: org.slf4j.LoggerFactory not found by > org.apache.servicemix.bundles.dnsjava > > Reference: > https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissu > es.apache.org%2Fjira%2Fbrowse%2FSM-4761&data=04%7C01%7Cdaniel.lang > evin%40shq.gouv.qc.ca%7Ca60b77a83df448bc5e5008d9daa8864f%7C8377d97d015 > 04e07b82ad67c55dc2c05%7C0%7C0%7C637781239606179432%7CUnknown%7CTWFpbGZ > sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 > D%7C3000&sdata=72i83zoqwqgBIjTdgVne1GJrpRhTxpr%2BmOGhyQRV7ug%3D&am > p;reserved=0 > > > Missing org.slf4j optional ??? > > > CAMEL-DNS headers > headers 231 > > camel-dns (231) > --------------- > Build-Jdk = 1.8.0_292 > Build-Jdk-Spec = 1.8 > Built-By = root > Created-By = Apache Maven Bundle Plugin Implementation-Title = Camel > :: DNS Implementation-URL = > https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcame > l.apache.org%2Fcamel-parent%2Fcomponents%2Fcamel-dns&data=04%7C01% > 7Cdaniel.langevin%40shq.gouv.qc.ca%7Ca60b77a83df448bc5e5008d9daa8864f% > 7C8377d97d01504e07b82ad67c55dc2c05%7C0%7C0%7C637781239606179432%7CUnkn > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwi > LCJXVCI6Mn0%3D%7C3000&sdata=3NmYdjn7pJkShYXFs6BRd9zBO6KJslZ8%2BJUk > cf3UtD0%3D&reserved=0 Implementation-Vendor = The Apache Software > Foundation Implementation-Vendor-Id = org.apache.camel > Implementation-Version = 3.11.5 Manifest-Version = 1.0 > Specification-Title = Camel :: DNS Specification-Vendor = The Apache > Software Foundation Specification-Version = 3.11.5 Tool = > Bnd-5.1.1.202006162103 > > Karaf-Info = Camel;camel-dns=3.11.5 > > Bundle-Description = Camel DNS support Bundle-DocURL = > https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > apache.org%2F&data=04%7C01%7Cdaniel.langevin%40shq.gouv.qc.ca%7Ca6 > 0b77a83df448bc5e5008d9daa8864f%7C8377d97d01504e07b82ad67c55dc2c05%7C0% > 7C0%7C637781239606179432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL > CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ARZkYBm > tQBTwkJhq0vlJlUrCekg98ooefULY2OYddH8%3D&reserved=0 > Bundle-License = > https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > apache.org%2Flicenses%2FLICENSE-2.0.txt&data=04%7C01%7Cdaniel.lang > evin%40shq.gouv.qc.ca%7Ca60b77a83df448bc5e5008d9daa8864f%7C8377d97d015 > 04e07b82ad67c55dc2c05%7C0%7C0%7C637781239606179432%7CUnknown%7CTWFpbGZ > sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 > D%7C3000&sdata=JMMQy4LdM0G9Yl5L8vGQggR2RkJj86nmiRbFt896mDc%3D& > reserved=0 > Bundle-ManifestVersion = 2 > Bundle-Name = camel-dns > Bundle-SymbolicName = org.apache.camel.camel-dns Bundle-Vendor = The > Apache Software Foundation Bundle-Version = 3.11.5 > > Provide-Capability = > > osgi.service;effective:=active;component=dns;objectClass=org.apache.ca > mel.spi.ComponentResolver > Require-Capability = > osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.8)) > > Export-Package = > org.apache.camel.component.dns; > uses:="org.apache.camel, > org.apache.camel.spi, > org.apache.camel.spi.annotations, > org.apache.camel.support, > org.apache.camel.support.component"; > version=3.11.5, > > org.apache.camel.component.dns.types;uses:="org.apache.camel,org.apache.camel.spi,org.xbill.DNS";version=3.11.5, > org.apache.camel.component.dns.cloud; > uses:="org.apache.camel, > org.apache.camel.cloud, > org.apache.camel.component.dns, > org.apache.camel.impl.cloud, > org.apache.camel.spi.annotations"; > version=3.11.5, > > org.apache.camel.component.dns.policy;uses:="org.apache.camel,org.apac > he.camel.spi,org.apache.camel.support";version=3.11.5 > Import-Package = > org.apache.camel;version="[3.11,3.12)", > org.apache.camel.cloud;version="[3.11,3.12)", > org.apache.camel.impl.cloud;version="[3.11,3.12)", > org.apache.camel.spi;version="[3.11,3.12)", > org.apache.camel.spi.annotations;version="[3.11,3.12)", > org.apache.camel.support;version="[3.11,3.12)", > org.apache.camel.support.component;version="[3.11,3.12)", > org.apache.camel.util;version="[3.11,3.12)", > javax.naming, > javax.naming.directory, > org.slf4j;version="[1.7,2)", > org.xbill.DNS;version="[3.3,4)" > Private-Package = > !* > karaf@root()> headers 330 > > Apache ServiceMix :: Bundles :: dnsjava (330) > --------------------------------------------- > Bnd-LastModified = 1604502961023 > Build-Jdk = 11.0.8 > Built-By = jbonofre > Created-By = Apache Maven Bundle Plugin Manifest-Version = 1.0 Tool = > Bnd-4.1.0.201810181252 > > Bundle-Description = This OSGi bundle wraps dnsjava 3.3.1 jar file. > Bundle-DocURL = > https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.a > pache.org%2F&data=04%7C01%7Cdaniel.langevin%40shq.gouv.qc.ca%7Ca60 > b77a83df448bc5e5008d9daa8864f%7C8377d97d01504e07b82ad67c55dc2c05%7C0%7 > C0%7C637781239606179432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLC > JQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FnUFG5 > C%2FRdsQQ4JZLZMyXf3K%2F%2B%2FN96HbaAwgAZ%2FXsBM%3D&reserved=0 > Bundle-License = > https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.a > pache.org%2Flicenses%2FLICENSE-2.0.txt&data=04%7C01%7Cdaniel.lange > vin%40shq.gouv.qc.ca%7Ca60b77a83df448bc5e5008d9daa8864f%7C8377d97d0150 > 4e07b82ad67c55dc2c05%7C0%7C0%7C637781239606179432%7CUnknown%7CTWFpbGZs > b3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D > %7C3000&sdata=NM%2FAbWgWtIHmuJ%2BTJ8ocLwEmjnFoRs2SOqdRu%2B2escc%3D > &reserved=0 > Bundle-ManifestVersion = 2 > Bundle-Name = Apache ServiceMix :: Bundles :: dnsjava > Bundle-SymbolicName = org.apache.servicemix.bundles.dnsjava > Bundle-Vendor = The Apache Software Foundation Bundle-Version = > 3.3.1.1 > > Require-Capability = > osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.8)) > > Export-Package = > > org.xbill.DNS;uses:="javax.crypto,org.xbill.DNS.config,org.xbill.DNS.utils";version=3.3.1, > org.xbill.DNS.config;uses:=org.xbill.DNS;version=3.3.1, > org.xbill.DNS.spi;uses:=sun.net.spi.nameservice;version=3.3.1, > org.xbill.DNS.tools;uses:=org.xbill.DNS;version=3.3.1, > org.xbill.DNS.utils;version=3.3.1 Import-Package = > javax.crypto, > javax.crypto.spec, > android.os;resolution:=optional, > sun.net.spi.nameservice;resolution:=optional, > junit.framework;resolution:=optional > > > > > > Regards > > Daniel Langevin > Direction de l'assistance et des technologies > Direction des ressources informationnelles et matérielles > -- Claus Ibsen ----------------- https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2F&data=04%7C01%7Cdaniel.langevin%40shq.gouv.qc.ca%7Ca60b77a83df448bc5e5008d9daa8864f%7C8377d97d01504e07b82ad67c55dc2c05%7C0%7C0%7C637781239606179432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=iIHRrXApwykqeaxzIRI6CXh95o3t2%2Fjfgp6WPC7GpsE%3D&reserved=0 @davsclaus Camel in Action 2: https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2&data=04%7C01%7Cdaniel.langevin%40shq.gouv.qc.ca%7Ca60b77a83df448bc5e5008d9daa8864f%7C8377d97d01504e07b82ad67c55dc2c05%7C0%7C0%7C637781239606179432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=llxWEt3bViWB6Sr2wvCgZXD3wL0mNKSWwame5yBoofc%3D&reserved=0
