Re: How do I resolve resolution problems in Karaf

2016-09-20 Thread Christian Schneider
The problem is that your example needs an implementation of the dto support but you installed the api bundle instead which is not suitable for runtime. On 20.09.2016 13:45, t...@quarendon.net wrote: I'm really struggling to get my bundles installed in Karaf, so I'd appreciate some hints on

Re: scr:details command

2016-09-20 Thread Guillaume Nodet
Could you provide the full command output please ? 2016-09-20 18:13 GMT+02:00 Leschke, Scott : > *This is the Karaf scr:details command. It also says that the reference > is mandatory (Optional : mandatory) and scr:info says Cardinality: 1..1.* > > > > *So I guess I’m

RE: scr:details command

2016-09-20 Thread Leschke, Scott
This is the Karaf scr:details command. It also says that the reference is mandatory (Optional : mandatory) and scr:info says Cardinality: 1..1. So I guess I’m still at how a mandatory reference be unbound but still be satisfied? Hmmm. From: David Jencks [mailto:david.a.jen...@gmail.com]

Re: scr:details command

2016-09-20 Thread David Jencks
either - minimum cardinality 0, so it’s always satisfied - the component is not satisfied for some other reason so nothing is bound to any reference. I think this is the karaf scr command so I might be wrong about the meaning. david jencks > On Sep 20, 2016, at 8:33 AM, Leschke, Scott

scr:details command

2016-09-20 Thread Leschke, Scott
I'm confused. What does it mean if scr:details says: State : satisfied Service Reference : No Services bound How can a reference be satisfied if it's not bound?

HBase Client Feature ClassNotFoundException

2016-09-20 Thread Alex Soto
Hi, Have anybody managed to deploy HBase client libraries as a Karaf Feature? I am following advice from this blog post http://canellos6.rssing.com/browser.php?indx=39187173=1=13 . Karaf starts normally, but at runtime, I am getting

Re: Resolution problem with osgi.enroute.dto.api

2016-09-20 Thread Guillaume Nodet
In order to use a R5 repository, you can do the following. http://karaf.apache.org/xmlns/features/v1.4.0; name="test"> https://raw.githubusercontent.com/osgi/osgi.enroute/v1.0.0/cnf/distro/index.xml

Re: Resolution problem with osgi.enroute.dto.api

2016-09-20 Thread David Daniel
API bundles are generally marked compile only and should not be deployed at runtime On Sep 20, 2016 9:19 AM, wrote: > I'm tracking down a rather odd problem trying to deploy a bundle into > Karaf. The > issue appears to be with the osgi.enroute.dto.api package. > > I'm

Resolution problem with osgi.enroute.dto.api

2016-09-20 Thread tom
I'm tracking down a rather odd problem trying to deploy a bundle into Karaf. The issue appears to be with the osgi.enroute.dto.api package. I'm getting this resolution error from Karaf: missing requirement: osgi.wiring.package;

Re: Creating features.xml files

2016-09-20 Thread Benson Margulies
On Tue, Sep 20, 2016 at 8:19 AM, wrote: > >> On 20 September 2016 at 12:52 Benson Margulies wrote: >> >> >> I build all my features with the karaf-maven-plugin. >> > > I don't use Maven, I use eclipse and bndtools, hence gradle as my build >

Re: How do I resolve resolution problems in Karaf

2016-09-20 Thread Benson Margulies
Tom, if you drop them _as bundles_, karaf works like any other osgi container -- you have to drop in all the bundles you need. You might need to set serviceRequirements to disable in org.apache.karaf.features.cfg if your bundle manifests are not fully informative on the topic of service

Re: Creating features.xml files

2016-09-20 Thread tom
> On 20 September 2016 at 12:52 Benson Margulies wrote: > > > I build all my features with the karaf-maven-plugin. > I don't use Maven, I use eclipse and bndtools, hence gradle as my build environment. Since I didn't have to do anything at all to get the gradle command

Re: How do I resolve resolution problems in Karaf

2016-09-20 Thread David Daniel
Tom integrating karaf development and bndtools development has been tricky but it is getting better. Karaf development is centered around Mavens build process while bndtools is centered around a custom workspace in cnf. This release bndtools will be supporting maven and you can see the latest

Re: How do I resolve resolution problems in Karaf

2016-09-20 Thread Guillaume Nodet
I'm not sure exactly how the "resolve" in bndtools work, but in Karaf, the resolution is done on all constraints, including generic capabilities / requirements, and including osgi services. In this very case, you have a bundle that requires the osgi.unresolvable capability. Why did you add this

Re: Creating features.xml files

2016-09-20 Thread Benson Margulies
I build all my features with the karaf-maven-plugin. On Sep 20, 2016 3:12 AM, wrote: > Up until now I've been developing code using bndtools in eclipse, writing > bndrun > files, resolving them, and running my application that way. The resolution > step > resolves all the

How do I resolve resolution problems in Karaf

2016-09-20 Thread tom
I'm really struggling to get my bundles installed in Karaf, so I'd appreciate some hints on how to diagnose some issues. I'm trying to do a feature:install of a features.xml file I've written to install my bundles. My latest is: missing requirement osgi.wiring.package;

Re: OSGi Log Service?

2016-09-20 Thread Guillaume Nodet
The service is provided by pax-logging. But I suspect the manifest is missing the capability for this service. Try adding the following instruction in your bundle <_removeheaders>Require-Capability Cheers, Guillaume Nodet 2016-09-20 12:49 GMT+02:00 : > According to the

Re: OSGi Log Service?

2016-09-20 Thread jerome
Hi Tom Did you install any feature providing the LogService? Felix Log service is one of the possible implementations You may précise in your code the optional attributs while defining the injection. Hth Jérôme Envoyé de mon smartphone BlackBerry 10 sur le réseau Orange.   Message d'origine  

OSGi Log Service?

2016-09-20 Thread tom
According to the documentation, the OSGi Log service is supported. I'm trying to install a bundle that uses it, and I get: missing requirement [bundleid/1.0.0.201609201024] osgi.service; filter:="(objectClass=org.osgi.service.log.LogService)"; effective:=active]] My use is with DS, so:

Re: Deploying an application from jenkins for test

2016-09-20 Thread tom
> you can use Pax Exam[1] for that and start Karaf embedded, this will give > you a clean state for every run. Initially I want to do it for testing, but I then want to deploy a "snapshot" and "release" version of the actual application for general internal demo use. I currently already have an

Creating features.xml files

2016-09-20 Thread tom
Up until now I've been developing code using bndtools in eclipse, writing bndrun files, resolving them, and running my application that way. The resolution step resolves all the requirements from the set of OBR repositories. All very easy (well, it is now, once I got over the learning curve :-) )

Re: Deploying an application from jenkins for test

2016-09-20 Thread Achim Nierbeck
Hi, you can use Pax Exam[1] for that and start Karaf embedded, this will give you a clean state for every run. The other way would be to have a Karaf with Jolokia running and deploy via JMX, I once created a sample for that [2]. regards, Achim [1] -

Re: Karaf, gogo shell?

2016-09-20 Thread tom
I started using Karaf yesterday. Version 4.0.6. Not aware of shell-compat. What does it do? I can't see it mentioned in any documentation. Naively tried installing it. Doesn't seem to change my ability to run a gogo shell command that I can see? > On 19 September 2016 at 17:08 Benson