Hi everybody,

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. Here is the the exception that I get when started the launcher.

|ERROR: Bundle org.apache.stanbol.contenthub.ldpath [69]: Error starting slinginstall:org.apache.stanbol.contenthub.ldpath-0.9.0-incubating-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.contenthub.ldpath [69]: Unable to resolve 69.0: missing requirement [69.0] package; (package=sun.security.pkcs)) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.contenthub.ldpath [69]: Unable to resolve 69.0: missing requirement [69.0] package; (package=sun.security.pkcs)
       at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
       at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
       at java.lang.Thread.run(Thread.java:636)|

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? I couldn't figure out how to set this property. Do yo have any idea about how to set this property or suggest another way to overcome this problem?

Best,
Suat

[1] http://felix.apache.org/site/apache-felix-framework-configuration-properties.html#ApacheFelixFrameworkConfigurationProperties-framework <http://felix.apache.org/site/apache-felix-framework-configuration-properties.html#ApacheFelixFrameworkConfigurationProperties-framework>

--
Suat Gönül

Software Research, Development and Consultation Ltd.
ODTU Silikon Blok 1. Kat No:14
Middle East Technical University Campus
06531 Ankara TURKEY

Phone: +90 (312) 210 1763
Fax: +90 (312) 210 1837

Reply via email to