https://issues.apache.org/bugzilla/show_bug.cgi?id=52381
--- Comment #12 from pan4o <ssku4...@web.de> 2012-03-22 13:18:20 UTC --- All dependencies (imports) you need in a project, should be in Import-Package: All packages you want to expose (make them public), should be in Export-Package: In the OSGI way you can expose throgh the Export-Package only that what you want to be public. In the sample MANIFEST we are exposing only our interfaces without exposing the implementation. Sooo no external package running in Karaf can access the implementation. Sample MANIFEST: Manifest-Version: 1.0 Export-Package: our.package;version="0.0.1.SNAPSHOT" Bundle-ClassPath: .,postgresql-9.0-801.jdbc4.jar,tomcat-jdbc-7.0.22.jar Built-By: hudson Tool: Bnd-1.15.0 Bundle-Name: our.package Created-By: Apache Maven Bundle Plugin Build-Jdk: 1.6.0_21 Bundle-Version: 0.0.1.SNAPSHOT Bnd-LastModified: 1330958118424 Bundle-ManifestVersion: 2 Embed-Dependency: *;artifactId=postgresql,*;artifactId=tomcat-jdbc Import-Package: org.springframework.jdbc.core.namedparam;version="[3 .0,4)",org.springframework.jdbc.core.simple;version="[3.0,4)",org.spr ingframework.jdbc.datasource;version="[3.0,4)",org.springframework.tr ansaction.annotation;version="[3.0,4)",org.w3c.dom,org.xml.sax Bundle-SymbolicName: our.package -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org