Re: Questions about OSGi

2016-09-29 Thread David Bosschaert
Hi Sigmund, On 29 September 2016 at 11:08, Sigmund Lee wrote: > Hi all, > > I'm on my way reading OSGi core spec 6.0 right now. here are some > questions confused me: > > 1. What's the relationship between a bundle's Bundle-Version manifest > header and attribute version of Export-Package manife

Re: Questions about OSGi

2016-09-30 Thread David Bosschaert
Hi Sigmund, Yes that's the only reason. Internally in the OSGi framework everything is translated into the generic requirements and capabilities. So if you use the Wiring API to obtain the capabilities of a bundle [1] you get all of them using namespaces, including the osgi.wiring.package etc, bu

Re: Bundle with Require-Bundle did not use Bundle-ClassPath in Felix.

2016-10-14 Thread David Bosschaert
Hi SvS, I would file a bug with Felix [1] ideally with a small testcase attached. The most likely thing is that there is some typo or other malformatting issue. The Bundle-ClassPath is tested by the OSGi CT and Felix passes that. So the best thing would be a small testcase to reproduce it. Then it

Re: Questions about Karaf 3.0.0: JAAS users, groups, roles, and ACLs

2013-10-11 Thread David Bosschaert
Yeah, the RBAC support that's there now is quite pluggable. You can basically use anything to set the roles in the current javax.security.auth.Subject. Currently JAAS is one way to do it, but you can also do it using other technologies and/or use your own custom roles (instead of the Karaf built-in

Re: Role Based Security

2013-11-12 Thread David Bosschaert
I wrote a blog article about how RBAC for OSGi services in Karaf can be used: http://coderthoughts.blogspot.com/2013/10/role-based-access-control-for-karaf.html Currently all the roles are specified using Config Admin, i.e. via .cfg files in the etc directory. On the annotation support, I know th

Re: Is my karaf server fully started ?

2013-11-14 Thread David Bosschaert
Or alternatively you can also write an little OSGi bundle that talks directly to the MBean Server via ManagementFactory.getPlatformMBeanServer() and does whatever it wants to do when the desired state has been reached. BTW do note that when using this with Karaf 3 you need to provide login credent

Re: New security mechanism in Karaf 3.0.0

2013-12-20 Thread David Bosschaert
Hi Ryan, I'll look at it on Monday. AFAIK there are no special ACLs for the instance commands (at least not by default). So you might have possibly found a bug... Cheers, David On 20 December 2013 21:47, Ryan Moquin wrote: > Hi, I ran into a problem recently as I was working on some code where

Re: New security mechanism in Karaf 3.0.0

2013-12-21 Thread David Bosschaert
Thanks for fixing this, JB! David On 21 December 2013 15:42, Jean-Baptiste Onofré wrote: > I think I fixed your problem with KARAF-2645. > > Regards > JB > > > On 12/21/2013 04:18 PM, Ryan Moquin wrote: >> >> If you don't mind cloning my cellar fork and building it you can see the >> error. I'm

Re: OSGi Compendium APIs

2014-01-14 Thread David Bosschaert
It sounds like you're manually adding a package to the system bundle exports without actually providing the package classes. Would it not be better to simply install a bundle that exports the package you need? That means that you don't need to manually edit config files etc... While it's generally

Re: Getting a "java.lang.SecurityException: Insufficient credentials.” error when executing various commands in Karaf 3.0.0

2014-01-16 Thread David Bosschaert
Hi Paul, This could be an omission on my part. When I worked on the command security I didn't really focus at the client command, but mainly worked with the bin/karaf command and SSH access. I can look into this. Would you like to file a bug for it? In the mean time, if you need the bin/client c

Re: Spec version implemented by Karaf 3.0.0

2014-03-21 Thread David Bosschaert
Karaf 3.0.0 is based on Apache Felix 4.2.1, which implements some functionality from the OSGi Core R5 spec, but that is not fully complete. AFAIK it does implement full OSGi Core R4.3 functionality. Best regards, David On 21 March 2014 16:30, asookazian2 wrote: > Which version of the OSGi spec

Re: List of avantages and disavantages of OSGI Karaf vs symphony

2014-06-23 Thread David Bosschaert
Hi Florian, If you are looking for what the benefits of OSGi in general are, the following presentation might be helpful: http://www.slideshare.net/bosschaert/benefits-of-osgi-in-practise Best regards, David On 16 June 2014 22:37, lionceau wrote: > Hi, > > To build a modular software. > > What

Re: Super-Newbie - How to add a plugin to a Hello World app

2014-06-27 Thread David Bosschaert
Hi Bob, Another place where you can look for practical examples of little OSGi bundles developed using a variety of build tools is here: http://wiki.osgi.org/wiki/ToolChains No graphical stuff with buttons. Most hello world examples are text-only, but there are various blogs etc on the web that s

Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread David Bosschaert
Hi all, Just wondering whether this is possible. I'm using a Karaf feature at runtime and want to make sure that at build time I'm picking up all the dependencies exactly like they are in the feature (i.e. same bundles at compile time as at runtime). So I was wondering is there a way to use a Kar

Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread David Bosschaert
ards > JB > > > On 07/15/2014 06:46 PM, David Bosschaert wrote: >> >> Hi all, >> >> Just wondering whether this is possible. I'm using a Karaf feature at >> runtime and want to make sure that at build time I'm picking up all >> the depen

Re: bundle specific classloaders

2014-08-22 Thread David Bosschaert
Hi Doug, Would the classloader for a specific bundle help here? It would give you access to what the bundle can see plus what it contains itself. You can obtain the bundle's classloader in two ways: 1. The easiest way is via the Bundle Wiring. If you have a bundle object, you can call bundle.adapt

Re: [PROPOSAL] Karaf Decanter monitoring

2014-10-14 Thread David Bosschaert
+1 this looks like a very useful set of components! On 14 October 2014 17:17, Matt Sicker wrote: > I never heard of a decanter before, but now that I have, it's an awesome > name. > > On 14 October 2014 11:06, Krzysztof Sobkowiak > wrote: >> >> +1 >> >> I think it's a good idea. It's good to ha

Re: Blueprint GracePeriod issue

2015-02-12 Thread David Bosschaert
I think the service dependency to a service published by the same blueprint container will work if that dependency is marked optional. Basically the problem is that Blueprint will not initialize its component if the mandatory dependencies aren't available. If you make that dependency optional you s

Re: wiring

2015-04-09 Thread David Bosschaert
In general it is possible to have multiple versions of the same library installed, this is totally fine in OSGi and therefore also in Karaf. Depending on your import version range you are wired to one or the other. I just wanted to note that if you do an update of a bundle that this does not autom

javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
Hi all, Apologies for posting to the Karaf list as this is not really a Karaf issue, but I this list may contain people that might have come across this issue as well. I have some code that runs in OSGi that uses javax.activation.DataHandler. As this is javax... you should be able to provide your

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
eers, > Jamie > > On Tue, Apr 21, 2015 at 10:53 AM, David Bosschaert > wrote: >> Hi all, >> >> Apologies for posting to the Karaf list as this is not really a Karaf >> issue, but I this list may contain people that might have come across >> this iss

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
bundle to pick up your > classes first? > > I know that's a bit of a hack around, but if it works at least you can > continue on... > > Cheers, > Jamie > > On Tue, Apr 21, 2015 at 11:13 AM, David Bosschaert > wrote: >> I guess what I'm looking for is a

Re: javax.activation.DataHandler in OSGi

2015-04-22 Thread David Bosschaert
Inc. > FuseSource is now part of Red Hat > > > > On 2015-4-21, at 下午9:23, David Bosschaert wrote: > > Hi all, > > Apologies for posting to the Karaf list as this is not really a Karaf > issue, but I this list may contain people that might have come across

Re: A very busy resolver

2015-08-31 Thread David Bosschaert
This seems more of a Felix Framework issue rather than a Karaf issue. What version of Felix is running Karaf? You might want to try switching to the latest Framework (version 5.2.0) as a lot of work has gone into the resolver recently... Cheers, David On 31 August 2015 at 20:04, Benson Margulies

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread David Bosschaert
Hi Benson, Could it be that the configuration with pid com.basistech.worker.service is missing? Or otherwise one of the services that it depends on isn't there (or isn't visible)? Cheers, David