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

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 fragility...@gmail.com wrote: Hi, I ran into a problem recently as I was

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é j...@nanthrax.net 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.

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

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

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 asookaz...@gmail.com wrote: Which

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 florian.brunet.fra...@gmail.com wrote: Hi, To build

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

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

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

2014-07-15 Thread David Bosschaert
/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 dependencies exactly like they are in the feature (i.e. same bundles at compile time as at runtime

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

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 boa...@gmail.com 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 krzys.sobkow...@gmail.com wrote: +1 I think it's

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

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
? Cheers, Jamie On Tue, Apr 21, 2015 at 10:53 AM, David Bosschaert david.bosscha...@gmail.com 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 issue as well. I have some code that runs

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

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
in your 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 david.bosscha...@gmail.com wrote: I guess what I'm looking for is a bundle that I can install

Re: javax.activation.DataHandler in OSGi

2015-04-22 Thread David Bosschaert
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 this issue as well. I have some code that runs in OSGi that uses

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

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

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

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