java - Importing package from target in OSGi bundle -


i'm having problems importing package in osgi bundle.

the package called org.semanticweb.hermit.datatypes.xmlliteral included in jar file org.semanticweb.hermit.jar. jar included in target definition , selected in run configuration. target recognizes osgi bundle, shouldn't problem. when try import package in own bundle error saying no bundle exports package. knows problem?

checking standard download "org.semanticweb.hermit.jar", has no export-package. therefore none of packages within jar usable other osgi components.

update:

the pax-url wrap plugin can wrap non-osgi jar osgi bundle , add arbitrary manifest lines.

https://ops4j1.jira.com/wiki/display/paxurl/wrap+protocol

there may reason don't include export-package. may want ask creator(s) directly make sure aren't looking trouble.

you can update jar have, use when deploying. there ton of options actually.

you can see how project it:

http://iks-project.googlecode.com/svn-history/r794/sandbox/kres/trunk/eu.iksproject.kres.shared/dependency/hermit124/pom.xml

they create pom.xml , provide own manifest entries using maven bundle plugin.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -