Osgi security

2010-06-18 Thread Roshan A. Punnoose
Hi, I am new to Java/OSGi security. I want to be able to specify a policy file that will be able to start up my OSGi container but will only install bundles that I have signed. Currently, I have downloaded the felix framework, and I have the framework.security project installed in it. My curre

Re: [iPOJO] Filter as a parameter

2010-06-18 Thread Clement Escoffier
On 18.06.2010, at 18:24, Loic Petit wrote: > Hi, > > It works like a charm by using a Dictionary (instead of a Map). Sorry for > that, I should have seen this :) Oups, sorry, it's a Dictionary, not a Map :-) Regards, clement > Thanks a lot ! > > Regards > > LP > > > On Fri, Jun 18, 2010

Re: [iPOJO] Filter as a parameter

2010-06-18 Thread Loic Petit
Hi, It works like a charm by using a Dictionary (instead of a Map). Sorry for that, I should have seen this :) Thanks a lot ! Regards LP On Fri, Jun 18, 2010 at 5:57 PM, Clement Escoffier < clement.escoff...@gmail.com> wrote: > Hi, > > On 18.06.2010, at 17:02, Loic Petit wrote: > > > Hi every

Re: [iPOJO] Filter as a parameter

2010-06-18 Thread Clement Escoffier
Hi, On 18.06.2010, at 17:02, Loic Petit wrote: > Hi everyone, > > I want to know if there is a "clean" way to do this thing. > > I've got a class with the following form: > > @Component > @Provides > class A { >@Requires >private B[] b; > } > > This component is then created by the iP

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
It only works when I install all the bundles and start them all with one command: start 6 7 8 9 ... Strange! On Fri, Jun 18, 2010 at 5:31 PM, khepel lak wrote: > Everything works except the extender > > > On Fri, Jun 18, 2010 at 4:49 PM, Guillaume Nodet wrote: > >> Well, at least you can f

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
Everything works except the extender On Fri, Jun 18, 2010 at 4:49 PM, Guillaume Nodet wrote: > Well, at least you can find which bundles work and try to mimic the > environment ... > > On Fri, Jun 18, 2010 at 15:57, khepel lak wrote: > > The karaf command works, but I don't want embedded karaf

[iPOJO] Filter as a parameter

2010-06-18 Thread Loic Petit
Hi everyone, I want to know if there is a "clean" way to do this thing. I've got a class with the following form: @Component @Provides class A { @Requires private B[] b; } This component is then created by the iPojo API via its factory. What I would like to do: give a ldap filter on the

Re: Spring DM and Felix

2010-06-18 Thread Guillaume Nodet
Well, at least you can find which bundles work and try to mimic the environment ... On Fri, Jun 18, 2010 at 15:57, khepel lak wrote: > The karaf command works, but I don't want embedded karaf :) > > On Fri, Jun 18, 2010 at 3:20 PM, khepel lak wrote: > >> This is the only dependency I have in the

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
The karaf command works, but I don't want embedded karaf :) On Fri, Jun 18, 2010 at 3:20 PM, khepel lak wrote: > This is the only dependency I have in the pom: > > > org.apache.felix.main > org.apache.felix > 2.0.1 > > > On Fri, Jun 18, 2010 at 3:14 PM, Guillaume Nodet wrote: > >> Right, b

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
This is the only dependency I have in the pom: org.apache.felix.main org.apache.felix 2.0.1 On Fri, Jun 18, 2010 at 3:14 PM, Guillaume Nodet wrote: > Right, but if your main classloader (i.e. the one you launch felix > from) has a copy of the API, the same problem would happen. > > On Fri,

Re: Spring DM and Felix

2010-06-18 Thread Guillaume Nodet
Right, but if your main classloader (i.e. the one you launch felix from) has a copy of the API, the same problem would happen. On Fri, Jun 18, 2010 at 15:07, khepel lak wrote: > No,  org.osgi.core is not installed. > > Felix Remote Shell Console: > > > -START LEVEL 1

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
No, org.osgi.core is not installed. Felix Remote Shell Console: -START LEVEL 1 ID State Level Name [ 0] [Active ] [0] System Bundle (2.0.1) [ 15] [Active ] [1] Apache Felix Bundle Repository (1.6.2) [ 16] [Active ] [1] Apache

no resolve from delegated classes?

2010-06-18 Thread Jos Snellings
Dear, In order to create a valid SAX reader, I use org.xml.sax.helpers.XMLReaderFactory To have parsers I uploaded the springsource bundles: - xml commons - xerces 2.9.1 (and resolver) Property org.xml.sax.driver says that it should use the Xerces parser. This is what happens inside Felix: :

Re: Spring DM and Felix

2010-06-18 Thread Richard S. Hall
On 6/18/10 6:19, khepel lak wrote: I am not able to start the spring osgi extender 1.2.1 on felix 1.4, 1.8 and 2.0.1. I have installed and started all the required bundles, but when I start the extender bundler I get this exception: java.lang.ClassCastException: org.springframework.osgi.extender

RE: Symbolic Name uniqness

2010-06-18 Thread Mahammad Nasir
Thank you. -Original Message- From: Stuart McCulloch [mailto:mccu...@gmail.com] Sent: Friday, June 18, 2010 3:39 PM To: users@felix.apache.org Subject: Re: Symbolic Name uniqness On 18 June 2010 17:53, Mahammad Nasir wrote: > Hi All, > > I am bit confused about uniquness of bundle sym

Re: Spring DM and Felix

2010-06-18 Thread Guillaume Nodet
Weird. Can you give a try to karaf and once started, running: > features:install spring-dm You should then have everything you need. On Fri, Jun 18, 2010 at 14:08, khepel lak wrote: > I tried also standalone Felix, same problem. > > On Fri, Jun 18, 2010 at 1:17 PM, khepel lak wrote: > >> Yes,

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
I tried also standalone Felix, same problem. On Fri, Jun 18, 2010 at 1:17 PM, khepel lak wrote: > Yes, I am launching embedded. > > When I read the felix documentation I see this: > > *WARNING* > The felix.systembundle.activators configuration property is specific to > the Felix framework imple

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
Yes, I am launching embedded. When I read the felix documentation I see this: *WARNING* The felix.systembundle.activators configuration property is specific to the Felix framework implementation. If you want your code to work with other framework implementations, you should call init() on the fra

Re: Spring DM and Felix

2010-06-18 Thread Guillaume Nodet
Are you launching felix standalone or from another JVM ? If you launch it embedded you need to take care of the classloader so that the OSGi APIs are hidden from the classloader you use to load felix. On Fri, Jun 18, 2010 at 11:47, khepel lak wrote: > I am not able to start the spring osgi extend

Spring DM and Felix

2010-06-18 Thread khepel lak
I am not able to start the spring osgi extender 1.2.1 on felix 1.4, 1.8 and 2.0.1. I have installed and started all the required bundles, but when I start the extender bundler I get this exception: java.lang.ClassCastException: org.springframework.osgi.extender.internal.activator.ContextLoaderListe

Re: Symbolic Name uniqness

2010-06-18 Thread Stuart McCulloch
On 18 June 2010 17:53, Mahammad Nasir wrote: > Hi All, > > I am bit confused about uniquness of bundle symbolic name. > > What is unque in OSGI is that bundle name or Bundle symbolic name.? This > means, i have to change the symbolic name or bundle name if i have to load > same bundle with differ

Symbolic Name uniqness

2010-06-18 Thread Mahammad Nasir
Hi All, I am bit confused about uniquness of bundle symbolic name. What is unque in OSGI is that bundle name or Bundle symbolic name.? This means, i have to change the symbolic name or bundle name if i have to load same bundle with different version? Basically i wanted to know what is unique

Spring DM and Felix

2010-06-18 Thread khepel lak
I am not able to start the spring osgi extender 1.2.1 on felix 1.4, 1.8 and 2.0.1. I have installed and started all the required bundles, but when I start the extender bundler I get this exception: java.lang.ClassCastException: org.springframework.osgi.extender.internal.activator.ContextLoaderListe