Dropping some karaf dependencies

2016-06-06 Thread jerome moliere
Hi all, It may be quite unusual here but I'd like you to help to drop some strong project 's dependencies with Karaf and especially with the JAAS related classes. We use some Karaf classes to manage JAAS security features in our application and I an aked to cut off these dependencies. In our code i

Re: Dropping some karaf dependencies

2016-06-06 Thread Jean-Baptiste Onofré
Hi Jerome, yes extending OsgiConfigLoginModule can do the trick. Or even more generic, you can directly implement a regular LoginModule (as we do in Jdbc, LDAP, Properties login module). Another possible way is to leverage the Syncope login module. Anyway, what you are doing looks like the P

Re: Destroy SCR component

2016-06-06 Thread Jean-Baptiste Onofré
Hi Alex, AFAIR, the dispose() callback method on the component does it. Regards JB On 06/03/2016 03:40 PM, Alex Soto wrote: With SCR, there is a way to programmatically create a new component on demand: ComponentFactory.newInstance Once I finish using the created instance, how can I tell

Re: Destroy SCR component

2016-06-06 Thread Jean-Baptiste Onofré
Oh, sorry I missed your e-mail. Sorry for the double answer ;) Regards JB On 06/03/2016 04:04 PM, Alex Soto wrote: Answering my own question: ComponentInstance.dispose(); Best regards, Alex soto On Jun 3, 2016, at 9:40 AM, Alex Soto mailto:alex.s...@envieta.com>> wrote: With SCR, t

Re: Dropping some karaf dependencies

2016-06-06 Thread jerome moliere
Hi JB thanks for the so quick answer. Yes you are right my plans are tro write another LoginModule but without being tied with Karaf. Just to ensure my vision is right, there 's no hidden beast involved with JAAS beyonh the realm/principal and loginmodule classes ? Kind regards Jerome On Mon, Ju

How to debug Karaf remotely when running as service

2016-06-06 Thread devilstorm
Hi folks, The debug option of Karaf is great but seems to work only when running in a console and not if it is installed a (Windows) service. Is that right? Is there any hack to enable remote debugging when running as a service? Regards, Thomas -- View this message in context: http://karaf.92

Re: How to debug Karaf remotely when running as service

2016-06-06 Thread Daniel McGreal
Hi, I think: in your etc/-wrapper.conf find the bit: # Uncomment to enable remote debugging #wrapper.java.additional.n=-Xdebug -Xnoagent -Djava.compiler=NONE #wrapper.java.additional.n=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 I guess you’ll need to change the .n to account for

Re: How to debug Karaf remotely when running as service

2016-06-06 Thread Jean-Baptiste Onofré
Using the wrapper, you can config the debug options in etc/karaf-wrapper.conf. Regards JB On 06/06/2016 12:15 PM, devilstorm wrote: Hi folks, The debug option of Karaf is great but seems to work only when running in a console and not if it is installed a (Windows) service. Is that right? Is t

Re: Blueprint and Custom Namespace

2016-06-06 Thread Setya
Hi Guillaume, I also experienced the following exception: /2016-06-06 14:45:15,112 | ERROR | nsole user karaf | BlueprintContainerImpl | 13 - org.apache.aries.blueprint.core - 1.6.1 | Unable to start blueprint container for bundle com.modulariti.eventstore/0.0.1 org.springframework.bea

Re: Destroy SCR component

2016-06-06 Thread Alex Soto
NP, Thanks! Best regards, Alex soto > On Jun 6, 2016, at 3:48 AM, Jean-Baptiste Onofré wrote: > > Oh, sorry I missed your e-mail. > > Sorry for the double answer ;) > > Regards > JB > > On 06/03/2016 04:04 PM, Alex Soto wrote: >> Answering my own question: >> >>ComponentInstance.dispose

Re: Blueprint and Custom Namespace

2016-06-06 Thread Guillaume Nodet
Could you raise a JIRA issue in the ARIES project ? I'll have a look. 2016-06-06 13:35 GMT+02:00 Setya : > Hi Guillaume, > > I also experienced the following exception: > > /2016-06-06 14:45:15,112 | ERROR | nsole user karaf | > BlueprintContainerImpl > | 13 - org.apache.aries.blueprint.core - 1.