I implemented a ConfigurationListener. After registering the service I get
following exception:
ERROR: Cannot create MetaType providing ManagedService; not providing
Metatype information but just accepting configuration
java.lang.NoClassDefFoundError: org/osgi/service/metatype/MetaTypeProvider
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2279)
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1501)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
org.apache.felix.scr.impl.config.ScrManagedServiceServiceFactory.getService(ScrManagedServiceServiceFactory.java:52)
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:308)
at
org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:35)
at
org.apache.felix.framework.ServiceRegistrationImpl$ServiceFactoryPrivileged.run(ServiceRegistrationImpl.java:372)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:214)
at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)
at org.apache.felix.framework.Felix.getService(Felix.java:3568)
at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)
at
org.apache.felix.cm.impl.helper.BaseTracker.getRealService(BaseTracker.java:200)
at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:98)
at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:81)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1436)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1392)
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: *** Package
'org.osgi.service.metatype' is not imported by bundle org.apache.felix.scr
[22], nor is there any bundle that exports package
'org.osgi.service.metatype'. However, the class
'org.osgi.service.metatype.MetaTypeProvider' is available from the system
class loader. There are two fixes: 1) Add package
'org.osgi.service.metatype' to the
'org.osgi.framework.system.packages.extra' property and modify bundle
org.apache.felix.scr [22] to import this package; this causes the system
bundle to export class path packages. 2) Add package
'org.osgi.service.metatype' to the 'org.osgi.framework.bootdelegation'
property; a library or VM bug can cause classes to be loaded by the wrong
class loader. The first approach is preferable for preserving modularity.
***
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1968)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 24 more
Caused by: java.lang.ClassNotFoundException:
org.osgi.service.metatype.MetaTypeProvider not found by org.apache.felix.scr
[22]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
I have a mental block. Is this a security issue?
Thx!!
Roland
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Cannot-create-MetaType-providing-ManagedService-not-providing-Metatype-information-but-just-acceptinn-tp5004954.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]