You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2010/12/01 08:56:01 UTC

Re: symbol not found for FrameworkUtil.getBundle()

Hi,

On Tue, Nov 30, 2010 at 9:58 PM, Mike Müller <mi...@mysign.ch> wrote:
> Thank you very much. Does this mean, I should not use
> org.osgi.core 4.2.0 in the Velocity Scripting bundle? We include
> Felix Framework 3.0.2 which implements osgi 4.2. Shouldn't we
> use org.osgi.core 4.2.0 in the parent pom as well?...

As Justin says it's better to change to 4.2 only in modules that
require it, so you can do that in the velocity scripting pom. Keeping
that dependency at 4.1 in general allows other modules to run in
different environments that might not provide 4.2 yet.

> ...Is there another way to get the BundleContext in a class which is created
> by a class you cannot control?...

Cannot help on that one.

-Bertrand