Re: Unable to deploy a Karaf kar file containing a ComponentFactory OSGi declarative service

2018-09-03 Thread Milen Dyankov
This is a shot it the dark and I'm sure JB will correct me if I'm wrong but I think it may be due to `effective:=active` directive. See, if you deploy the `scr` feature and your bundles, they are activated. But IMHO the application bundle shouldn't resolve because It has `Require-Capability: ... o

Re: Unable to deploy a Karaf kar file containing a ComponentFactory OSGi declarative service

2018-09-04 Thread Milen Dyankov
gt; fpa...@apache.org >> >> Le 03/09/2018 à 19:02, Jean-Baptiste Onofré a écrit : >> > Hi Milen, >> > >> > effective means that it expects a service available in the registry. So, >> > if ComponentFactory is preset in the registry (you can check with

Few questions about security, JAAS, RBAC, ...

2015-11-24 Thread Milen Dyankov
Hi guys, Let me start by saying I'm only using Karaf for some private projects and spend very limited time on it so chances are I may have misunderstood or overlooked something. I've reached the point where I need to apply some kind of RBAC to my app, so I started looking in what Karaf provides.

Re: [Karaf-4.0.4] Handling Capabilities with Karaf-Maven-Plugin

2016-02-11 Thread Milen Dyankov
Another option would be to use fragment bundle. However there are some life cycle issues in some corner cases when you use fragments. 11 lut 2016 13:20 "Mike Rumpf" napisał(a): > Hello guys, > > I am building a feature with the karaf-maven-plugin. I am using a bundle > from maven central which

Re: Injecting service into command

2016-04-27 Thread Milen Dyankov
I personally would prefer to be able to create Karaf command with standard R6 annotations instead. Or at least standard compatible ones. On Wed, Apr 27, 2016 at 4:21 PM, Jean-Baptiste Onofré wrote: > It works if you create another class that contains the DS annotation. Then > you can inject into

Re: Injecting service into command

2016-04-27 Thread Milen Dyankov
Do you happen to have an example? 27 kwi 2016 18:20 "Jean-Baptiste Onofré" napisał(a): > We created such annotations to simplify the way to create commands. > > It's possible to use DS to create the command service, but you have to do > some plumbing (service properties for scope, etc). > > Regar

Re: Injecting service into command

2016-04-27 Thread Milen Dyankov
re Karaf command) (using the > shell-compat feature). It worked fine. Let me find it out. > > Regards > JB > > On 04/27/2016 06:21 PM, Milen Dyankov wrote: > >> Do you happen to have an example? >> >> 27 kwi 2016 18:20 "Jean-Baptiste Onofré" &g

Re: Embedding Karaf 4.0.5 in web app - NoClassDefFoundError on startup

2016-06-28 Thread Milen Dyankov
Achim, doing something similar is on my todo list (please don't ask why) so if there is any issue with embedding Karaf in web app I'm as well very interested to get it solved. Best, Milen On Tue, Jun 28, 2016 at 12:11 PM, Achim Nierbeck wrote: > Hi, > > why not the other way round? > Just run y

[Ann] Modularity Conference in Darmstadt Germany : ModConf

2016-08-22 Thread Milen Dyankov
Hi guys, As some of you may have heard (via other communication channels) we at Liferay are trying to put together a new event in Europe related to modularity. This new event, called Modconf will be a one-day (Nov 15) "conference within a confere

Gogo commands in extracted karaf shell

2016-12-02 Thread Milen Dyankov
Hi, I managed to get karaf shell to work in Liferay by deploying the relevant bundles (from 4.0.7) and manually configuring some system properties. It seams to work OK and most karaf commands work as expected. The thing is, I'm unable to run gogo commands. I mean, I can run gogo commands when I c

complete documentation for features.xml

2016-12-06 Thread Milen Dyankov
Hi, is there any documentation that explains features.xml in details? Particularly things like - conditional features - prerequisite and dependency bundles - requirements and capabilities of features - libraries - repository and resource-repository I can find bits and pieces here and there

Re: Preventing access to shell:exec in 4.0.7

2016-12-09 Thread Milen Dyankov
I know this does not help you at all but IMHO giving random users access to webconsole is terrible idea. I personally consider webconsole only useful for developers and eventually highly trusted, responsible and knowledgeable administrators. On Fri, Dec 9, 2016 at 1:48 PM, Paul McCulloch wrote:

Re: JMX UI for Cellar and/or Karaf

2016-12-14 Thread Milen Dyankov
Openfire seems to use Hawt.io. You should be able to install it in Karaf (it's available as feature IIRC) and get similar view to the one from Openfire. I have only played with it once, long time ago so I can't tell if it still works and what exactly it gives you but perhaps it's worth trying. Bes

Re: Start Ordering in OSGi

2017-04-24 Thread Milen Dyankov
Hi Peter, if I understand correctly (I must admit it's not immediately clear to me), you think of Aggregate State service as something that should be a general purpose service provided by OSGi implementation or some library. In another words, it's not something that developers need to implement th

Karaf 4 and cellar

2015-02-02 Thread Milen Dyankov
Hi everyone, can someone give me a hint about the best way to play with Karaf 4 and Cellar please? I triad installing Cellar 3.0.1 on Karaf 4.0.0.M1 and I got some weird error: >feature:install cellar > Error executing command: Unable to resolve root: missing requirement > [root] osgi.identity; o

Re: Karaf 4 and cellar

2015-02-02 Thread Milen Dyankov
> By the way, in the mean time, I would advise you to use Karaf 3.0.x with > Cellar 3.0.x (if you want to experiment Cellar), waiting my push. > > regards > JB > > On 02/02/2015 12:15 PM, Milen Dyankov wrote: > >> Hi everyone, >> >> can someone give m

Re: Dependecy error installing HTTP feature

2015-03-09 Thread Milen Dyankov
You have installed version 3.1.0 of Java Servlet API However pax-web expects: (version>=2.3.0)(!(version>=3.1.0) So from pax-web's perspective servlet api (that it needs) is not there ;) You either need older version of servlet api (you can have both) or newer version of pax-web (assuming there i

Re: Declarative Services with Karaf

2015-04-17 Thread Milen Dyankov
If I understand your question correctly, you can do this with ConfigAdmin. You can use either ComponentFactory or use "simple" component and provide the factory PID in the MetaType (http://www.aqute.biz/Bnd/MetaType). In both cases you can have multiple instances of the same service by creating mul

Re: Anyone Going to apache con core eu?

2015-08-24 Thread Milen Dyankov
Hi guys, I'm also going and hoping to meet (at least some of) you there. Best, Milen On Sun, Aug 23, 2015 at 11:33 PM, Łukasz Dywicki wrote: > Hey guys, > I plan to be there. From other people who I know will be there is > Krzysztof (he is SMX commiter). Not sure about Andreas (in CC), he is