missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Hello, I developed a SOAP service which is encapsulated in a kar archive. Then, I made a custom karaf distribution from Karaf 4.0.4. Everything works fine (no error message in the log files and the service works fine). The problem is when I try to do the same thing with Karaf 4.0.8, I got this message during the deployement : missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)" How can I inject the service "org.osgi.service.log.LogService"? In my class, I have : protected LogService logService; public void setLogService( final LogService logService ) { this.logService = logService; } In the file pom.xml, I have : org.osgi org.osgi.service.log Must I use and if yes, what must be the contain of this element? It seems that the LogService service is not satisfied anymore and it seems to be the same problem that is specified here : http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Container-4-0-6-release-td4047647.html Please, could you help me please? Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
The missing requirement indicates that you need a Log Service implementation (i.e. someone to provide you with the service). The dependency that you’re compiling against is just the API (which is a good thing to compile against) but you actually need an implementation at runtime. Your build tools know that you need this service, and so have added a requirement for the service to your bundle. Your bundle therefore will not resolve until you have installed a bundle which declares that it provides the service! Regards, Tim > On 22 Feb 2017, at 09:05, Olivier21 wrote: > > Hello, > > I developed a SOAP service which is encapsulated in a kar archive. Then, I > made a custom karaf distribution from Karaf 4.0.4. Everything works fine (no > error message in the log files and the service works fine). > > The problem is when I try to do the same thing with Karaf 4.0.8, I got this > message during the deployement : > > missing requirement [...] osgi.service; effective:=active; > filter:="(objectClass=org.osgi.service.log.LogService)" > > How can I inject the service "org.osgi.service.log.LogService"? > > In my class, I have : > > protected LogService logService; > > public void setLogService( final LogService logService ) > { > this.logService = logService; > } > > > In the file pom.xml, I have : > >org.osgi >org.osgi.service.log > > > Must I use and if yes, what must be the contain of this > element? > > It seems that the LogService service is not satisfied anymore and it seems > to be the same problem that is specified here : > http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Container-4-0-6-release-td4047647.html > > Please, could you help me please? > > Olivier > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593.html > Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
I forgot to say that in the file blueprint.xml, I have : -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049594.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Tim, Thank you for your answer. I discovered with the command : service:list LogService that the bundle OPS4J Pax-Logging provides the log service : karaf@root()> service:list LogService [org.apache.karaf.log.core.LogService] -- service.bundleid = 37 service.id = 85 service.scope = singleton Provided by : Apache Karaf :: Log :: Core (37) Used by: Apache Karaf :: Log :: Core (37) [org.osgi.service.log.LogService, org.knopflerfish.service.log.LogService, org.ops4j.pax.logging.PaxLoggingService, org.osgi.service.cm.ManagedService] --- service.bundleid = 2 service.id = 12 service.pid = org.ops4j.pax.logging service.ranking = 1 service.scope = bundle Provided by : OPS4J Pax Logging - Service (2) Used by: Apache Aries JMX Core (17) Apache Aries SPI Fly Dynamic Weaving Bundle (55) Apache Felix Configuration Admin Service (3) Apache Felix Metatype Service (5) Apache Karaf :: Log :: Core (37) OPS4J Pax Web - Runtime (93) OPS4J Pax Logging - API (1) karaf@root()> How to specify in pom.xml that pax-logging provides the LogService? Thank you very much for your help. Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049596.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
For this next step you’ll need someone more familiar with how Karaf adds its logging service in the “normal” distribution. Best Regards, Tim > On 22 Feb 2017, at 09:22, Olivier21 wrote: > > Tim, > > Thank you for your answer. > > I discovered with the command : > > service:list LogService > > that the bundle OPS4J Pax-Logging provides the log service : > > karaf@root()> service:list LogService > [org.apache.karaf.log.core.LogService] > -- > service.bundleid = 37 > service.id = 85 > service.scope = singleton > Provided by : > Apache Karaf :: Log :: Core (37) > Used by: > Apache Karaf :: Log :: Core (37) > > [org.osgi.service.log.LogService, org.knopflerfish.service.log.LogService, > org.ops4j.pax.logging.PaxLoggingService, org.osgi.service.cm.ManagedService] > --- > service.bundleid = 2 > service.id = 12 > service.pid = org.ops4j.pax.logging > service.ranking = 1 > service.scope = bundle > Provided by : > OPS4J Pax Logging - Service (2) > Used by: > Apache Aries JMX Core (17) > Apache Aries SPI Fly Dynamic Weaving Bundle (55) > Apache Felix Configuration Admin Service (3) > Apache Felix Metatype Service (5) > Apache Karaf :: Log :: Core (37) > OPS4J Pax Web - Runtime (93) > OPS4J Pax Logging - API (1) > > karaf@root()> > > > How to specify in pom.xml that pax-logging provides the LogService? > > Thank you very much for your help. > > Olivier > > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049596.html > Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
As Tim explained your bundle has the requirement for a LogService OSGi service in its Manifest. Since I think karaf 4.0.5 requirements for services are also checked by the feature service of karaf. In version before these requirements were ignored. The problem now is that not all bundles that provide such services also define a capability for them in their Manifest. So while the actually is a LogService in karaf that is provided by pax logging this service is not announced statically in the Manifest using a Provide-Capability header. So in fact this is a bug in pax-logging as it should provide the capability. I will take care of an issue and fix at pax logging. You can fix this quickly by either switching off the functionality of karaf to look into service requirements or by providing the capability in config. 1. Edit etc/org.apache.karaf.features.cfg and set serviceRequirements=disable 2. Edit etc/config.properties and a line to org.osgi.framework.system.capabilities= osgi.service;effective:=active;objectClass=org.osgi.service.log.LogService The solution 2 wrongly attributes the LogService to the system bundle but this should still work. Christian On 22.02.2017 10:09, Timothy Ward wrote: The missing requirement indicates that you need a Log Service implementation (i.e. someone to provide you with the service). The dependency that you’re compiling against is just the API (which is a good thing to compile against) but you actually need an implementation at runtime. Your build tools know that you need this service, and so have added a requirement for the service to your bundle. Your bundle therefore will not resolve until you have installed a bundle which declares that it provides the service! Regards, Tim On 22 Feb 2017, at 09:05, Olivier21 wrote: Hello, I developed a SOAP service which is encapsulated in a kar archive. Then, I made a custom karaf distribution from Karaf 4.0.4. Everything works fine (no error message in the log files and the service works fine). The problem is when I try to do the same thing with Karaf 4.0.8, I got this message during the deployement : missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)" How can I inject the service "org.osgi.service.log.LogService"? In my class, I have : protected LogService logService; public void setLogService( final LogService logService ) { this.logService = logService; } In the file pom.xml, I have : org.osgi org.osgi.service.log Must I use and if yes, what must be the contain of this element? It seems that the LogService service is not satisfied anymore and it seems to be the same problem that is specified here : http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Container-4-0-6-release-td4047647.html Please, could you help me please? Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Ok Thanks Tim! -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049599.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Actually it's not really a bug in Pax-Logging, as the feature.xml is provided by Karaf. And it's easy to fix for us, cause we just need to add this capability to the feature.xml of the pax-logging feature we have in Karaf. we just need to add the following snippet to the feature.xml osgi.service;objectClass=org.osgi.service.log.LogService regards, Achim 2017-02-22 10:27 GMT+01:00 Christian Schneider : > As Tim explained your bundle has the requirement for a LogService OSGi > service in its Manifest. Since I think karaf 4.0.5 requirements for > services are also checked by the feature service of karaf. In version > before these requirements were ignored. > > The problem now is that not all bundles that provide such services also > define a capability for them in their Manifest. So while the actually is a > LogService in karaf that is provided by pax logging this service is not > announced statically in the Manifest using a Provide-Capability header. So > in fact this is a bug in pax-logging as it should provide the capability. I > will take care of an issue and fix at pax logging. > > You can fix this quickly by either switching off the functionality of > karaf to look into service requirements or by providing the capability in > config. > > 1. Edit etc/org.apache.karaf.features.cfg and set > serviceRequirements=disable > > 2. Edit etc/config.properties and a line to > org.osgi.framework.system.capabilities= > osgi.service;effective:=active;objectClass=org.osgi.service.log.LogService > > The solution 2 wrongly attributes the LogService to the system bundle but > this should still work. > > Christian > > > On 22.02.2017 10:09, Timothy Ward wrote: > >> The missing requirement indicates that you need a Log Service >> implementation (i.e. someone to provide you with the service). The >> dependency that you’re compiling against is just the API (which is a good >> thing to compile against) but you actually need an implementation at >> runtime. Your build tools know that you need this service, and so have >> added a requirement for the service to your bundle. Your bundle therefore >> will not resolve until you have installed a bundle which declares that it >> provides the service! >> >> Regards, >> >> Tim >> >> On 22 Feb 2017, at 09:05, Olivier21 >>> wrote: >>> >>> Hello, >>> >>> I developed a SOAP service which is encapsulated in a kar archive. Then, >>> I >>> made a custom karaf distribution from Karaf 4.0.4. Everything works fine >>> (no >>> error message in the log files and the service works fine). >>> >>> The problem is when I try to do the same thing with Karaf 4.0.8, I got >>> this >>> message during the deployement : >>> >>> missing requirement [...] osgi.service; effective:=active; >>> filter:="(objectClass=org.osgi.service.log.LogService)" >>> >>> How can I inject the service "org.osgi.service.log.LogService"? >>> >>> In my class, I have : >>> >>> protected LogService logService; >>> >>> public void setLogService( final LogService logService ) >>> { >>> this.logService = logService; >>> } >>> >>> >>> In the file pom.xml, I have : >>> >>> org.osgi >>> org.osgi.service.log >>> >>> >>> Must I use and if yes, what must be the contain of this >>> element? >>> >>> It seems that the LogService service is not satisfied anymore and it >>> seems >>> to be the same problem that is specified here : >>> http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Containe >>> r-4-0-6-release-td4047647.html >>> >>> Please, could you help me please? >>> >>> Olivier >>> >>> >>> >>> >>> -- >>> View this message in context: http://karaf.922171.n3.nabble. >>> com/missing-requirement-osgi-service-effective-active-filter >>> -objectClass-org-osgi-service-log-LogService-tp4049593.html >>> Sent from the Karaf - User mailing list archive at Nabble.com. >>> >> > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Thank you very much Christian. I just tried your first solution and the problem seems to be solved regarding LogService. I have no more the error message. Nevertheless, when i execute the command "bundle:list", I have no result. In the log file, i have 2 missing dependencies (that I have not with Karaf 4.0.4) : févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: Installing and starting initial bundles févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: All initial bundles installed and set to start févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Trying to lock E:\workspaceEclipseNeon\annuaireBE1D\annuaireBE1D_custom_distri\target\annuaireBE1D_custom_distri-1.0.0\lock févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Lock acquired févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFOS: Lock acquired. Setting startlevel to 100 2017-02-22 10:43:14,796 | INFO | pool-1-thread-2 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Adding features: instance/[4.0.8,4.0.8], package/[4.0.8,4.0.8], log/[4.0.8,4.0.8], ssh/[4.0.8,4.0.8], aries-blueprint/[4.0.8,4.0.8], framework/[4.0.8,4.0.8], system/[4.0.8,4.0.8], feature/[4.0.8,4.0.8], shell/[4.0.8,4.0.8], management/[4.0.8,4.0.8], service/[4.0.8,4.0.8], jaas/[4.0.8,4.0.8], shell-compat/[4.0.8,4.0.8], deployer/[4.0.8,4.0.8], diagnostic/[4.0.8,4.0.8], wrap/[0,0.0.0], bundle/[4.0.8,4.0.8], config/[4.0.8,4.0.8], kar/[4.0.8,4.0.8] 2017-02-22 10:43:15,178 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Changes to perform: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Region: root 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Bundles to install: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:jline/jline/2.14.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.9 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.7.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.core/1.1.7 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.whiteboard/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries/org.apache.aries.util/1.1.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.0.8 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.ka
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
I do not see any error in the log. Can you try bundle:list -t 0 ? Christian On 22.02.2017 10:55, Olivier21 wrote: Thank you very much Christian. I just tried your first solution and the problem seems to be solved regarding LogService. I have no more the error message. Nevertheless, when i execute the command "bundle:list", I have no result. In the log file, i have 2 missing dependencies (that I have not with Karaf 4.0.4) : févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: Installing and starting initial bundles févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: All initial bundles installed and set to start févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Trying to lock E:\workspaceEclipseNeon\annuaireBE1D\annuaireBE1D_custom_distri\target\annuaireBE1D_custom_distri-1.0.0\lock févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Lock acquired févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFOS: Lock acquired. Setting startlevel to 100 2017-02-22 10:43:14,796 | INFO | pool-1-thread-2 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Adding features: instance/[4.0.8,4.0.8], package/[4.0.8,4.0.8], log/[4.0.8,4.0.8], ssh/[4.0.8,4.0.8], aries-blueprint/[4.0.8,4.0.8], framework/[4.0.8,4.0.8], system/[4.0.8,4.0.8], feature/[4.0.8,4.0.8], shell/[4.0.8,4.0.8], management/[4.0.8,4.0.8], service/[4.0.8,4.0.8], jaas/[4.0.8,4.0.8], shell-compat/[4.0.8,4.0.8], deployer/[4.0.8,4.0.8], diagnostic/[4.0.8,4.0.8], wrap/[0,0.0.0], bundle/[4.0.8,4.0.8], config/[4.0.8,4.0.8], kar/[4.0.8,4.0.8] 2017-02-22 10:43:15,178 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Changes to perform: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Region: root 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Bundles to install: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:jline/jline/2.14.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.9 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.7.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.core/1.1.7 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.whiteboard/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries/org.apache.aries.util/1.1.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.0.8 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.core/4.0.8 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.0.8 2017-0
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Hi Olivier, Can you check with la command (it's an alias to bundle:list -t 0) ? Regards JB On 02/22/2017 10:55 AM, Olivier21 wrote: Thank you very much Christian. I just tried your first solution and the problem seems to be solved regarding LogService. I have no more the error message. Nevertheless, when i execute the command "bundle:list", I have no result. In the log file, i have 2 missing dependencies (that I have not with Karaf 4.0.4) : févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: Installing and starting initial bundles févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: All initial bundles installed and set to start févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Trying to lock E:\workspaceEclipseNeon\annuaireBE1D\annuaireBE1D_custom_distri\target\annuaireBE1D_custom_distri-1.0.0\lock févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Lock acquired févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFOS: Lock acquired. Setting startlevel to 100 2017-02-22 10:43:14,796 | INFO | pool-1-thread-2 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Adding features: instance/[4.0.8,4.0.8], package/[4.0.8,4.0.8], log/[4.0.8,4.0.8], ssh/[4.0.8,4.0.8], aries-blueprint/[4.0.8,4.0.8], framework/[4.0.8,4.0.8], system/[4.0.8,4.0.8], feature/[4.0.8,4.0.8], shell/[4.0.8,4.0.8], management/[4.0.8,4.0.8], service/[4.0.8,4.0.8], jaas/[4.0.8,4.0.8], shell-compat/[4.0.8,4.0.8], deployer/[4.0.8,4.0.8], diagnostic/[4.0.8,4.0.8], wrap/[0,0.0.0], bundle/[4.0.8,4.0.8], config/[4.0.8,4.0.8], kar/[4.0.8,4.0.8] 2017-02-22 10:43:15,178 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Changes to perform: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Region: root 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Bundles to install: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:jline/jline/2.14.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.9 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.7.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.core/1.1.7 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.whiteboard/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries/org.apache.aries.util/1.1.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.0.8 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.core/4.0.8 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.config/org.apache.karaf.confi
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Just a quick detail: as the default system level is 80, bundle:list will show only bundles greater than 80 (considered as user bundles). The 'la' command (bundle:list -t 0) displays all bundles (system and user). Regards JB On 02/22/2017 10:55 AM, Olivier21 wrote: Thank you very much Christian. I just tried your first solution and the problem seems to be solved regarding LogService. I have no more the error message. Nevertheless, when i execute the command "bundle:list", I have no result. In the log file, i have 2 missing dependencies (that I have not with Karaf 4.0.4) : févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: Installing and starting initial bundles févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main launch INFOS: All initial bundles installed and set to start févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Trying to lock E:\workspaceEclipseNeon\annuaireBE1D\annuaireBE1D_custom_distri\target\annuaireBE1D_custom_distri-1.0.0\lock févr. 22, 2017 10:43:13 AM org.apache.karaf.main.lock.SimpleFileLock lock INFOS: Lock acquired févr. 22, 2017 10:43:13 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFOS: Lock acquired. Setting startlevel to 100 2017-02-22 10:43:14,796 | INFO | pool-1-thread-2 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Adding features: instance/[4.0.8,4.0.8], package/[4.0.8,4.0.8], log/[4.0.8,4.0.8], ssh/[4.0.8,4.0.8], aries-blueprint/[4.0.8,4.0.8], framework/[4.0.8,4.0.8], system/[4.0.8,4.0.8], feature/[4.0.8,4.0.8], shell/[4.0.8,4.0.8], management/[4.0.8,4.0.8], service/[4.0.8,4.0.8], jaas/[4.0.8,4.0.8], shell-compat/[4.0.8,4.0.8], deployer/[4.0.8,4.0.8], diagnostic/[4.0.8,4.0.8], wrap/[0,0.0.0], bundle/[4.0.8,4.0.8], config/[4.0.8,4.0.8], kar/[4.0.8,4.0.8] 2017-02-22 10:43:15,178 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Changes to perform: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Region: root 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | Bundles to install: 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:jline/jline/2.14.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.9 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.7.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.core/1.1.7 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.whiteboard/1.1.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.api/1.0.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.5 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.aries/org.apache.aries.util/1.1.1 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.0.8 2017-02-22 10:43:15,179 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 6 - org.apache.karaf.features.core - 4.0.8 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.core/4.0.8 2017-02-22 10:43:15,179 | INFO | po
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
bundle:list -t 0 give me this result : karaf@root()> bundle:list -t 0 START LEVEL 100 , List Threshold: 0 ID | State| Lvl | Version | Name 0 | Active | 0 | 5.6.1| System Bundle 1 | Active | 8 | 1.8.5| OPS4J Pax Logging - API 2 | Active | 8 | 1.8.5| OPS4J Pax Logging - Service 3 | Active | 10 | 1.8.12 | Apache Felix Configuration Admin Service 4 | Active | 11 | 3.5.6| Apache Felix File Install 5 | Active | 5 | 2.5.2| OPS4J Pax Url - aether: 6 | Active | 15 | 4.0.8| Apache Karaf :: Features :: Core 7 | Active | 30 | 2.14.1 | JLine 8 | Active | 20 | 1.0.1| Apache Aries Blueprint API 9 | Active | 20 | 1.0.9| Apache Aries Blueprint CM 10 | Active | 20 | 1.7.1| Apache Aries Blueprint Core, Fragments: 11 11 | Resolved | 20 | 1.0.0| Apache Aries Blueprint Core Compatiblity Fragment Bundle, Hosts: 10 12 | Active | 30 | 1.1.5| Apache Aries JMX API 13 | Active | 30 | 1.1.5| Apache Aries JMX Blueprint API 14 | Active | 30 | 1.1.5| Apache Aries JMX Blueprint Core 15 | Active | 30 | 1.1.7| Apache Aries JMX Core 16 | Active | 30 | 1.1.5| Apache Aries Whiteboard support for JMX DynamicMBean services 17 | Active | 20 | 1.0.1| Apache Aries Proxy API 18 | Active | 20 | 1.0.5| Apache Aries Proxy Service 19 | Active | 20 | 1.1.1| Apache Aries Util 20 | Active | 30 | 4.0.8| Apache Karaf :: Bundle :: BlueprintStateService 21 | Active | 30 | 4.0.8| Apache Karaf :: Bundle :: Core 22 | Active | 30 | 4.0.8| Apache Karaf :: ConfigAdmin :: Core 23 | Active | 24 | 4.0.8| Apache Karaf :: Deployer :: Blueprint 24 | Active | 26 | 4.0.8| Apache Karaf :: Deployer :: Features 25 | Active | 24 | 4.0.8| Apache Karaf :: Deployer :: Karaf Archive (.kar) 26 | Active | 24 | 4.0.8| Apache Karaf :: Deployer :: Wrap Non OSGi Jar 27 | Active | 30 | 4.0.8| Apache Karaf :: Diagnostic :: Core 28 | Active | 30 | 4.0.8| Apache Karaf :: Features :: Command 29 | Active | 30 | 4.0.8| Apache Karaf :: Instance :: Core 30 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Blueprint :: Config 31 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Command 32 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Config 33 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Modules 34 | Active | 30 | 4.0.8| Apache Karaf :: KAR :: Core 35 | Active | 30 | 4.0.8| Apache Karaf :: Log :: Core 36 | Active | 30 | 4.0.8| Apache Karaf :: Management 37 | Active | 30 | 4.0.8| Apache Karaf :: Package :: Core 38 | Active | 30 | 4.0.8| Apache Karaf :: Service :: Core 39 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: Various Commands 40 | Resolved | 30 | 4.0.8| Apache Karaf :: Shell :: Console, Hosts: 41 41 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: Core, Fragments: 40 42 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: SSH 43 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: Table 44 | Active | 30 | 4.0.8| Apache Karaf :: System :: Core 45 | Active | 30 | 0.3.11.1 | Apache ServiceMix :: Bundles :: not-yet-commons-ssl 46 | Active | 30 | 0.14.0 | Apache Mina SSHD :: Core 47 | Active | 30 | 0.2.1| JLEdit :: Core 48 | Active | 20 | 5.0.4| ASM all classes with debug info 49 | Active | 5 | 2.5.2| OPS4J Pax Url - wrap: but I haven't got my bundles which must be deployed in my custom distribution. Maybe it's due to the missing depnedency : 2017-02-22 10:57:38,671 | INFO | pool-2-thread-1 | CommandExtension | 41 - org.apache.karaf.shell.core - 4.0.8 | Command registration delayed for bundle org.apache.karaf.kar.core/4.0.8. Missing dependencies: [org.apache.karaf.kar.KarService] But do you know why this dependency is missing (I haven't got this problem with Karaf 4.0.4)? Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049605.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Hi Olivier, In your command, I guess you have @Reference to KarService, correct ? Regards JB On 02/22/2017 11:05 AM, Olivier21 wrote: bundle:list -t 0 give me this result : karaf@root()> bundle:list -t 0 START LEVEL 100 , List Threshold: 0 ID | State| Lvl | Version | Name 0 | Active | 0 | 5.6.1| System Bundle 1 | Active | 8 | 1.8.5| OPS4J Pax Logging - API 2 | Active | 8 | 1.8.5| OPS4J Pax Logging - Service 3 | Active | 10 | 1.8.12 | Apache Felix Configuration Admin Service 4 | Active | 11 | 3.5.6| Apache Felix File Install 5 | Active | 5 | 2.5.2| OPS4J Pax Url - aether: 6 | Active | 15 | 4.0.8| Apache Karaf :: Features :: Core 7 | Active | 30 | 2.14.1 | JLine 8 | Active | 20 | 1.0.1| Apache Aries Blueprint API 9 | Active | 20 | 1.0.9| Apache Aries Blueprint CM 10 | Active | 20 | 1.7.1| Apache Aries Blueprint Core, Fragments: 11 11 | Resolved | 20 | 1.0.0| Apache Aries Blueprint Core Compatiblity Fragment Bundle, Hosts: 10 12 | Active | 30 | 1.1.5| Apache Aries JMX API 13 | Active | 30 | 1.1.5| Apache Aries JMX Blueprint API 14 | Active | 30 | 1.1.5| Apache Aries JMX Blueprint Core 15 | Active | 30 | 1.1.7| Apache Aries JMX Core 16 | Active | 30 | 1.1.5| Apache Aries Whiteboard support for JMX DynamicMBean services 17 | Active | 20 | 1.0.1| Apache Aries Proxy API 18 | Active | 20 | 1.0.5| Apache Aries Proxy Service 19 | Active | 20 | 1.1.1| Apache Aries Util 20 | Active | 30 | 4.0.8| Apache Karaf :: Bundle :: BlueprintStateService 21 | Active | 30 | 4.0.8| Apache Karaf :: Bundle :: Core 22 | Active | 30 | 4.0.8| Apache Karaf :: ConfigAdmin :: Core 23 | Active | 24 | 4.0.8| Apache Karaf :: Deployer :: Blueprint 24 | Active | 26 | 4.0.8| Apache Karaf :: Deployer :: Features 25 | Active | 24 | 4.0.8| Apache Karaf :: Deployer :: Karaf Archive (.kar) 26 | Active | 24 | 4.0.8| Apache Karaf :: Deployer :: Wrap Non OSGi Jar 27 | Active | 30 | 4.0.8| Apache Karaf :: Diagnostic :: Core 28 | Active | 30 | 4.0.8| Apache Karaf :: Features :: Command 29 | Active | 30 | 4.0.8| Apache Karaf :: Instance :: Core 30 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Blueprint :: Config 31 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Command 32 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Config 33 | Active | 30 | 4.0.8| Apache Karaf :: JAAS :: Modules 34 | Active | 30 | 4.0.8| Apache Karaf :: KAR :: Core 35 | Active | 30 | 4.0.8| Apache Karaf :: Log :: Core 36 | Active | 30 | 4.0.8| Apache Karaf :: Management 37 | Active | 30 | 4.0.8| Apache Karaf :: Package :: Core 38 | Active | 30 | 4.0.8| Apache Karaf :: Service :: Core 39 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: Various Commands 40 | Resolved | 30 | 4.0.8| Apache Karaf :: Shell :: Console, Hosts: 41 41 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: Core, Fragments: 40 42 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: SSH 43 | Active | 30 | 4.0.8| Apache Karaf :: Shell :: Table 44 | Active | 30 | 4.0.8| Apache Karaf :: System :: Core 45 | Active | 30 | 0.3.11.1 | Apache ServiceMix :: Bundles :: not-yet-commons-ssl 46 | Active | 30 | 0.14.0 | Apache Mina SSHD :: Core 47 | Active | 30 | 0.2.1| JLEdit :: Core 48 | Active | 20 | 5.0.4| ASM all classes with debug info 49 | Active | 5 | 2.5.2| OPS4J Pax Url - wrap: but I haven't got my bundles which must be deployed in my custom distribution. Maybe it's due to the missing depnedency : 2017-02-22 10:57:38,671 | INFO | pool-2-thread-1 | CommandExtension | 41 - org.apache.karaf.shell.core - 4.0.8 | Command registration delayed for bundle org.apache.karaf.kar.core/4.0.8. Missing dependencies: [org.apache.karaf.kar.KarService] But do you know why this dependency is missing (I haven't got this problem with Karaf 4.0.4)? Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049605.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Hi JB! In fact, I have a maven module to generate my custom distribution of Karaf and the pom.xml is : http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 fr.truc _parent 1.0.0 _custom_distri karaf-assembly 1.0.0 Distribution de Karaf personnalisee 4.0.8 org.apache.karaf.features framework ${karaf.version} kar compile org.apache.karaf.features enterprise ${karaf.version} features xml runtime org.postgresql postgresql 9.4-1203-jdbc41 runtime fr.truc _kar ${project.version} features xml runtime fr.truc _modele ${project.version} runtime fr.truc _metier ${project.version} runtime fr.truc _jaxws ${project.version} runtime src/main/resources false **/* src/main/filtered-resources true **/* org.apache.karaf.tooling karaf-maven-plugin ${karaf.version} true wrap aries-blueprint shell shell-compat feature jaas ssh management bundle config deployer diagnostic feature instance kar log package service system webconsole jdbc jpa transaction jndi pax-jdbc pax-jdbc-config pax-jdbc-pool-dbcp2 cxf hibernate-orm _kar Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049607.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Any chance to share your project ? It would be easier as I can fix directly on your stuff. Thanks, Regards JB On 02/22/2017 11:14 AM, Olivier21 wrote: Hi JB! In fact, I have a maven module to generate my custom distribution of Karaf and the pom.xml is : http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 fr.truc _parent 1.0.0 _custom_distri karaf-assembly 1.0.0 Distribution de Karaf personnalisee 4.0.8 org.apache.karaf.features framework ${karaf.version} kar compile org.apache.karaf.features enterprise ${karaf.version} features xml runtime org.postgresql postgresql 9.4-1203-jdbc41 runtime fr.truc _kar ${project.version} features xml runtime fr.truc _modele ${project.version} runtime fr.truc _metier ${project.version} runtime fr.truc _jaxws ${project.version} runtime src/main/resources false **/* src/main/filtered-resources true **/* org.apache.karaf.tooling karaf-maven-plugin ${karaf.version} true wrap aries-blueprint shell shell-compat feature jaas ssh management bundle config deployer diagnostic feature instance kar log package service system webconsole jdbc jpa transaction jndi pax-jdbc pax-jdbc-config pax-jdbc-pool-dbcp2 cxf hibernate-orm _kar Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049607.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
JB, I sent you the project by email. -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049609.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Great ! Thanks Regards JB On 02/22/2017 11:34 AM, Olivier21 wrote: JB, I sent you the project by email. -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049609.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"
Christian, I found another solution to this problem. I added an element : osgi.service;effective:=active;objectClass=org.osgi.service.log.LogService in the the file "feature.xml" which allow to create my kar file. Good afternoon. Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049732.html Sent from the Karaf - User mailing list archive at Nabble.com.