It sounds like you're manually adding a package to the system bundle exports without actually providing the package classes. Would it not be better to simply install a bundle that exports the package you need? That means that you don't need to manually edit config files etc...
While it's generally recommended that implementations of compendium APIs provide the APIs themselves, you can also obtain them from the compendium API jars: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.osgi%22%20AND%20a%3A%22org.osgi.compendium%22 Cheers, David On 14 January 2014 11:13, agrz <alexander.grze...@medisite.de> wrote: > Hi JB > > yes the import is correct. The bundle is resolved and gets an error during > runtime. > In fact trying with felix UserAdmin implementation is the same behavior. > Trying to deploy version 1.0.3 of Felix UserAdmin I get the following error: > > org.osgi.framework.BundleException: Activator start error in bundle > org.apache.felix.useradmin [79]. > at > org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)[org.apache.felix.framework-4.2.1.jar:] > at > org.apache.felix.framework.Felix.startBundle(Felix.java:2064)[org.apache.felix.framework-4.2.1.jar:] > at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.2.1.jar:] > at > org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247)[16:org.apache.felix.fileinstall:3.2.6] > at > org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219)[16:org.apache.felix.fileinstall:3.2.6] > at > org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:508)[16:org.apache.felix.fileinstall:3.2.6] > at > org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[16:org.apache.felix.fileinstall:3.2.6] > Caused by: java.lang.NoClassDefFoundError: > org.osgi.service.useradmin.UserAdminListener > at > org.apache.felix.useradmin.osgi.UserAdminListenerListHelper.class$(UserAdminListenerListHelper.java:38) > at > org.apache.felix.useradmin.osgi.UserAdminListenerListHelper.<init>(UserAdminListenerListHelper.java:38) > at > org.apache.felix.useradmin.osgi.Activator.createServiceContext(Activator.java:68) > at org.apache.felix.useradmin.osgi.Activator.start(Activator.java:37) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146) > ... 6 more > > > In my config properties I have set: > > > org.osgi.framework.system.packages= \ > org.osgi.framework.startlevel;uses:="org.osgi.framework";version="1.0", \ > org.osgi.framework.wiring;uses:="org.osgi.framework";version="1.1", \ > org.osgi.framework.hooks.bundle;uses:="org.osgi.framework";version="1.1", \ > org.osgi.framework.hooks.service;uses:="org.osgi.framework";version="1.1", > \ > > org.osgi.framework.hooks.resolver;uses:="org.osgi.framework.wiring";version="1.0", > \ > org.osgi.framework.launch;uses:="org.osgi.framework";version="1.1", \ > org.osgi.framework.namespace;uses:="org.osgi.resource";version="1.0", \ > org.osgi.framework;version="1.7", \ > > org.osgi.framework.hooks.weaving;uses:="org.osgi.framework.wiring";version="1.0",\ > org.osgi.resource;version="1.0",org.osgi.service.url;version="1.0",\ > org.osgi.service.startlevel;uses:="org.osgi.framework";version="1.1",\ > org.osgi.service.packageadmin;uses:="org.osgi.framework";version="1.2",\ > org.osgi.service.useradmin;uses:="org.osgi.framework";version="1.1",\ > org.osgi.service.url;version="1.0", \ > org.osgi.util.tracker;uses:="org.osgi.framework";version="1.5.1", \ > org.apache.karaf.jaas.boot;version="3.0.0", \ > org.apache.karaf.jaas.boot.principal;version="3.0.0", \ > org.apache.karaf.management.boot;version="3.0.0", \ > org.apache.karaf.version;version="3.0.0", \ > ${jre-${java.specification.version}} > > > I am using Karaf 3.0.0 Release. I also tried to look into the libraries that > karaf includes and could only find very few the compendium services APIs. > Where does karaf get the additonal org.osgi.service packages from? Is there > something that needs to be installed in addition? > > Regards > Alexander > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/OSGi-Compendium-APIs-tp4030999p4031005.html > Sent from the Karaf - User mailing list archive at Nabble.com.