You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Lissuan Fadraga Artiles <lf...@uci.cu> on 2012/11/08 00:30:59 UTC

how can i give a ConfigurationPermission to a bundle to configure another bundle

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

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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: how can i give a ConfigurationPermission to a bundle to configure another bundle

Posted by Felix Meschberger <fm...@adobe.com>.
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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org