Having the dependency manager in the mix makes it hard to guess what the real path is. Can you please give a bit more information about what you do and what happens? I'm thinking about the exception you see and the code where it actually happens.
It is unclear to me how D would end up getting an exception if C is looking up the service via the dependency manager... regards, Karl On Fri, Jul 27, 2012 at 1:36 PM, bokie <[email protected]> wrote: > Hi Richard, > > I have changed all "register" and "get" code in my Activators to run in > doPrivileged() blocks to no avail - I should also mention that I am using > felix-dependency manager to perform "register" and "get". Are there any > special consideration to take into account when using the DM under these > conditions - I have defined the following permissions for the DM: > > allow { > [org.osgi.service.condpermadmin.BundleLocationCondition > "file:${APP_HOME}/bundles/org.apache.felix.dependencymanager-3.0.0.jar"] > (java.security.AllPermission "" "") > } "felix.dependencymanager-permissions" > > My Activator: > > AccessController.doPrivileged(new PrivilegedAction<Void>() { > @Override > public Void run() { > manager.add(createComponent() > .setInterface(c.S2.class.getName(), null) > .setImplementation(c.S2Impl.instance()) > .add(createServiceDependency().setService(a.S1.class).setRequired(true).setCallbacks("added", > "removed")) > ); > return null; > }}); > > > > > > -- > View this message in context: > http://apache-felix.18485.n6.nabble.com/framework-security-tp4998719p4998726.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

