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:

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

Re: Symbolic Name uniqness

2010-06-18 Thread Stuart McCulloch
On 18 June 2010 17:53, Mahammad Nasir mahammadna...@huawei.com 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

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:

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 khepe...@gmail.com wrote: I am not able to start the

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

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 khepe...@gmail.com 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

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 khepe...@gmail.com wrote: I tried also standalone Felix, same problem. On Fri, Jun 18, 2010 at 1:17 PM, khepel lak

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 mahammadna...@huawei.com wrote: Hi All, I am bit confused about

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:

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 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]

Re: Spring DM and Felix

2010-06-18 Thread khepel lak
This is the only dependency I have in the pom: dependency artifactIdorg.apache.felix.main/artifactId groupIdorg.apache.felix/groupId version2.0.1/version /dependency On Fri, Jun 18, 2010 at 3:14 PM, Guillaume Nodet gno...@gmail.com wrote: Right, but if your main classloader (i.e. the one

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 khepe...@gmail.com wrote: This is the only dependency I have in the pom: dependency artifactIdorg.apache.felix.main/artifactId groupIdorg.apache.felix/groupId version2.0.1/version

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 khepe...@gmail.com wrote: The karaf command works, but I don't want embedded karaf :) On Fri, Jun 18, 2010 at 3:20 PM, khepel lak khepe...@gmail.com wrote: This is

[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 khepel lak
Everything works except the extender On Fri, Jun 18, 2010 at 4:49 PM, Guillaume Nodet gno...@gmail.com 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 khepe...@gmail.com wrote: The karaf command works, but

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 khepe...@gmail.com wrote: Everything works except the extender On Fri, Jun 18, 2010 at 4:49 PM, Guillaume Nodet gno...@gmail.com

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 iPojo API via its

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 at 5:57

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