There is no real need to install the security provider as an extension
bundle. You could put it on the classpath of the app and pass its
activator as a system bundle activator. That way you should be able to
work around the issue. However, I never tried to use it on android and
Im not sure it will work - if you try it please let us know what the
result was :-)

regards,

Karl

On Wed, Aug 17, 2011 at 4:15 PM, Darren Carlson <[email protected]> wrote:
> Hi,
>
> I'm having a problem loading the OSGi Framework Security extension on
> Android. I am trying to load Framework Security version 1.4.2 into Felix
> version 3.2.2. The exception I get is: "Unable to add extension bundle to
> FrameworkClassLoader - Maybe not an URLClassLoader?"
>
> The exception comes from the Felix ExtensionManager, which attempts to
> create its private instance by adding a new URL to the system class loader,
> which is obtained from Felix.class.getClassLoader(). However, since Android
> uses the PathClassLoader rather than a URLCLassLoader, this fails -
> rendering the ExtensionManager inoperable.
>
> Because of this, it appears to be impossible to load framework security on
> Android at the moment. Does anyone have any ideas or workarounds?
>
> Reference:
> http://svn.apache.org/repos/asf/felix/branches/org.apache.felix.framework-3.0.8-RC/src/main/java/org/apache/felix/framework/ExtensionManager.java
>
> Thanks,
> Darren
>
> ---------------------------------------------------------------------
> 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]

Reply via email to