Hi Suat, On Fri, Nov 25, 2011 at 8:14 AM, Suat Gonul <[email protected]> wrote: >... I am trying to use LDPath in OSGi environment, so I added necessary > dependencies to use it but at some point I failed to load a package > (sun.security.pkcs) which is found in Java JDK into OSGi environment...
Would there be a way to avoid requiring this package? That would be best IMO. > ...I searched this on the web and AFAIU, according to documentation at [1] if > I > supply the missing package to *org.osgi.framework.system.packages.extra* > configuration property, System bundle would export that package also. Is > this possible for our system?... That would work but there's a better way with framework extension bundles as explained by Felix (the committer, not the project ;-) at [1]. We do have such a fragment bundle in Stanbol, see [2] - maybe you can just add your package to it, or if it's needed by just one specific component of Stanbol create another fragment bundle. -Bertrand [1] http://blog.meschberger.ch/2008/10/osgi-bundles-require-classes-from.html [2] https://svn.apache.org/repos/asf/incubator/stanbol/trunk/frameworkfragment/pom.xml
