Silly question maybe, but how did you provide the jar? If you choose a simple bundle, it sounds like a missing import statement of sun.security.jca, because otherwise your bundle wouldn't resolve (assuming you didn't specify the dependency as optional). In my JVM the jce.jar is part of it, so you could simply add the package to the boot delegation: org.osgi.framework.bootdelegation=sun.*,com.sun.*,javax.crypto.* Another last possibility is creating a fragment bundle that contains this very export statement and is attached to the "system.bundle". Depending on the implementation. you might also need to specify it as a framework extension. This is a nice way to show that you expose more than just java.* from your JVM, but has the drawback that for instance the Eclipse IDE won't recognize that (at least last time I tried it). So I guess, you should have some more possibilities to try out.
On Tue, Sep 30, 2008 at 7:54 AM, David Leangen <[EMAIL PROTECTED]> wrote: >> Anyway, since the framework is not providing this, is this an error on >> the part of my framework (Equinox)? Or it is normal that I should have >> to ensure myself that these extensions are available, such as for >> example wrapping them in my own bundle or providing them to the >> bootdelegator? >> >> This is still not so clear to me... > > While waiting for some enlightenment on this subject... > > I provided my own wrapper bundle for jce.jar. However, boom: > > java.lang.NoClassDefFoundError: sun/security/jca/GetInstance > at javax.crypto.KeyGenerator.<init>(DashoA12275) > at javax.crypto.KeyGenerator.getInstance(DashoA12275) > > The sun.security.jca package is part of rt.jar. > > Just to be sure that bootdelegation is set up correctly, I specifically > set this property: > > org.osgi.framework.bootdelegation=sun.*,com.sun.* > > The problem persists. > > Isn't rt.jar supposed to be part of bootdelegation? > > So, doesn't this make this a framework issue? > > > Thanks! > =David.Leangen > > > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev > -- Mirko Jahn Heidelberger Str. 51 69126 Heidelberg Germany Fon: +49 [0] 6221 - 431 28 58 Mobile: +49 [0] 173 211 41 94 E-Mail: [EMAIL PROTECTED] Web: http://www.mjahn.net _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev