Hi Felix It works, but is rarely that only a null argument make the difference, what about this ?
Thanks, Lissuan -----Original Message----- From: Felix Meschberger [mailto:[email protected]] Sent: Sunday, November 11, 2012 10:46 PM To: [email protected] Subject: Re: how can i give a ConfigurationPermission to a bundle to configure another bundle Hi Lissuan Maybe you should go back to my initial reply and read it more thoroughly ... You don't need the Security Manager at all. What you need is make sure your management bundle gets the configuration. And this is as simple as using ConfigurationAdmin.getConfiguration(pid, null); instead of ConfigurationAdmin.getConfiguration(pid); Regards Felix Am 12.11.2012 um 03:59 schrieb Lissuan Fadraga Artiles: > Thanks Karl, > I have the security manager enable in console mode, I give the > org.osgi.service.cm.ConfigurationPermission "*" "configure" permission > to the configuring bundle but the error is still rising : > *ERROR* Cannot use configuration test.manejador.receptorConfig for > [org.service.cm.ManagedService, id 25, bundle 10] Configuration bound > to bundle file...... > > Is somewhat that I'm missing? > > Regards > Lissuan > > ----Original Message----- > From: Karl Pauls [mailto:[email protected]] > Sent: Sunday, November 11, 2012 2:43 PM > To: [email protected] > Subject: Re: how can i give a ConfigurationPermission to a bundle to > configure another bundle > > I don't know. However, I did find this: > > http://wiki.netbeans.org/MavenBestPractices#Debugging.2C_running_appli > cation > s > > regards, > > Karl > > > On Mon, Nov 12, 2012 at 2:37 AM, Lissuan Fadraga Artiles > <[email protected]>wrote: > >> Good is work ,but how I do for integrate this whit the Netbeans? >> >> Regards >> Lissuan.. >> >> >> >> -----Original Message----- >> From: Karl Pauls [mailto:[email protected]] >> Sent: Sunday, November 11, 2012 2:21 PM >> To: [email protected] >> Subject: Re: how can i give a ConfigurationPermission to a bundle to >> configure another bundle >> >> You have to also say: >> >> -Djava.security.policy=bin/all.police >> >> I would guess. >> >> regards, >> >> Karl >> >> >> On Mon, Nov 12, 2012 at 2:16 AM, Lissuan Fadraga Artiles >> <[email protected]>wrote: >> >>> I put that : >>> >>> java -Dorg.osgi.framework.security=osgi -jar bin\felix.jar , and >>> in the bin folder contains a all.police file whit this code : grant >>> { permission java.security.AllPermission; }; this rises this error : >>> >>> Error creating bundle cache: >>> <java.security.AccesControlException:acces >>> denied<Java.io.FilePermission .\felix-cache read>> >>> >>> What about this?.. >>> >>> Regards, >>> Lissuan >>> >>> >>> >>> -----Original Message----- >>> From: Karl Pauls [mailto:[email protected]] >>> Sent: Sunday, November 11, 2012 2:05 PM >>> To: [email protected] >>> Subject: Re: how can i give a ConfigurationPermission to a bundle to >>> configure another bundle >>> >>> try it without netbeans first maybe? >>> >>> :-) >>> >>> regards, >>> >>> Karl >>> >>> >>> On Mon, Nov 12, 2012 at 2:02 AM, Lissuan Fadraga Artiles >>> <[email protected]>wrote: >>> >>>> I have a Netbeans OSGi bundle, and I aggregate the >>>> framework.security bundle as a project's dependency but I don't >>>> know how tells Netbeans that start the framework whit a security >>>> manager, and less where to put the security police whit the >> allpermission. >>>> >>>> Regards, >>>> >>>> Lissuan. >>>> >>>> -----Original Message----- >>>> From: Karl Pauls [mailto:[email protected]] >>>> Sent: Sunday, November 11, 2012 1:49 PM >>>> To: [email protected] >>>> Subject: Re: how can i give a ConfigurationPermission to a bundle >>>> to configure another bundle >>>> >>>> If you want to use OSGi security you have to install the >>>> framework.security bundle and start the framework with a security >>>> manager set and a security policy that gives the framework >> allpermission. >>>> >>>> regards, >>>> >>>> Karl >>>> >>>> >>>> On Mon, Nov 12, 2012 at 1:40 AM, Lissuan Fadraga Artiles >>>> <[email protected]>wrote: >>>> >>>>> Hi: >>>>> But how I can enable the Java Security Manager for OSGi bundle's >>>>> ?, I'm using Netbeans 7.1.2 and Maven 3.0.3 >>>>> >>>>> Thanks >>>>> Lissuan.. >>>>> >>>>> -----Original Message----- >>>>> From: Felix Meschberger [mailto:[email protected]] >>>>> Sent: Wednesday, November 07, 2012 11:55 PM >>>>> To: [email protected] >>>>> Subject: Re: how can i give a ConfigurationPermission to a bundle >>>>> to configure another bundle >>>>> >>>>> Hi, >>>>> >>>>> Am 08.11.2012 um 00:30 schrieb Lissuan Fadraga Artiles: >>>>> >>>>>> Hi: >>>>>> I Have a A bundle that configure a service from another bundle B, >>>>>> but this rises an error like this : >>>>>> >>>>>> *ERROR* Cannot use configuration test.manejador.receptorConfig or >>>>>> [org.osgi.service.cm.ManagedService, id=7, bundle=3] >>>>>> Configuration bound to bundle file: ...... >>>>> >>>>> I assume you are ussing the single argument method to get the >>>>> configuration. >>>>> >>>>> Administrative bundles should actually use the two argument >>>>> variant and use null for the location, e.g. >>>>> >>>>>> config = >>>>>> configAdmin.getConfiguration("test.manejador.receptorConfig", >>>>>> null); >>>>>> >>>>> >>>>> >>>>> >>>>>> >>>>>> I know that bundle A must have ConfigurationPermission to >>>>>> configure anothers bundles, I tried to do for the way of >>>>>> PermissionAdmin setPermission method but the error rises again. >>>>>> Somebody has any idea about how I setup security for configuring >>>>>> bundles, or something's that I am missing ? >>>>> >>>>> Unless you enabled the Java Security Manager, Permissions do not >>>>> come into play here. >>>>> >>>>> >>>>> Regards >>>>> Felix >>>>> >>>>>> >>>>>> Thanks >>>>>> Lissuan Fadraga >>>>>> >>>>>> >>>>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS >>>>>> CIENCIAS >>>>> INFORMATICAS... >>>>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>>>>> >>>>>> http://www.uci.cu >>>>>> http://www.facebook.com/universidad.uci >>>>>> http://www.flickr.com/photos/universidad_uci >>>>>> >>>>>> -------------------------------------------------------------- >>>>>> -- >>>>>> -- >>>>>> -- >>>>>> - To unsubscribe, e-mail: [email protected] >>>>>> For additional commands, e-mail: [email protected] >>>>>> >>>>> >>>>> >>>>> ---------------------------------------------------------------- >>>>> -- >>>>> -- >>>>> - To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >>>>> INFORMATICAS... >>>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>>>> >>>>> http://www.uci.cu >>>>> http://www.facebook.com/universidad.uci >>>>> http://www.flickr.com/photos/universidad_uci >>>>> >>>>> >>>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >>>>> INFORMATICAS... >>>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>>>> >>>>> http://www.uci.cu >>>>> http://www.facebook.com/universidad.uci >>>>> http://www.flickr.com/photos/universidad_uci >>>>> >>>>> ---------------------------------------------------------------- >>>>> -- >>>>> -- >>>>> - To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>> >>>> >>>> -- >>>> Karl Pauls >>>> [email protected] >>>> http://twitter.com/karlpauls >>>> http://www.linkedin.com/in/karlpauls >>>> https://profiles.google.com/karlpauls >>>> >>>> >>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >>>> INFORMATICAS... >>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>>> >>>> http://www.uci.cu >>>> http://www.facebook.com/universidad.uci >>>> http://www.flickr.com/photos/universidad_uci >>>> >>>> >>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >>>> INFORMATICAS... >>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>>> >>>> http://www.uci.cu >>>> http://www.facebook.com/universidad.uci >>>> http://www.flickr.com/photos/universidad_uci >>>> >>>> ------------------------------------------------------------------ >>>> -- >>>> - To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> >>> -- >>> Karl Pauls >>> [email protected] >>> http://twitter.com/karlpauls >>> http://www.linkedin.com/in/karlpauls >>> https://profiles.google.com/karlpauls >>> >>> >>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >>> INFORMATICAS... >>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>> >>> http://www.uci.cu >>> http://www.facebook.com/universidad.uci >>> http://www.flickr.com/photos/universidad_uci >>> >>> >>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >>> INFORMATICAS... >>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >>> >>> http://www.uci.cu >>> http://www.facebook.com/universidad.uci >>> http://www.flickr.com/photos/universidad_uci >>> >>> -------------------------------------------------------------------- >>> - To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> -- >> Karl Pauls >> [email protected] >> http://twitter.com/karlpauls >> http://www.linkedin.com/in/karlpauls >> https://profiles.google.com/karlpauls >> >> >> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >> INFORMATICAS... >> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >> >> http://www.uci.cu >> http://www.facebook.com/universidad.uci >> http://www.flickr.com/photos/universidad_uci >> >> >> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >> INFORMATICAS... >> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >> >> http://www.uci.cu >> http://www.facebook.com/universidad.uci >> http://www.flickr.com/photos/universidad_uci >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Karl Pauls > [email protected] > http://twitter.com/karlpauls > http://www.linkedin.com/in/karlpauls > https://profiles.google.com/karlpauls > > > 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS > INFORMATICAS... > CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION > > http://www.uci.cu > http://www.facebook.com/universidad.uci > http://www.flickr.com/photos/universidad_uci > > > 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... > CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION > > http://www.uci.cu > http://www.facebook.com/universidad.uci > http://www.flickr.com/photos/universidad_uci > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

