Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
scr-2.1.22
-
None
Description
If the required log package is not available when SCR is resolved the following exception happens on startup of SCR:
org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.scr [48].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1036)
... 6 more
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/log/LoggerFactory
at org.apache.felix.scr.impl.logger.LogManager.<init>(LogManager.java:59)
at org.apache.felix.scr.impl.logger.ScrLogManager.<init>(ScrLogManager.java:62)
at org.apache.felix.scr.impl.logger.ScrLogManager.scr(ScrLogManager.java:58)
at org.apache.felix.scr.impl.Activator.start(Activator.java:119)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
... 12 more
Caused by: java.lang.ClassNotFoundException: org.osgi.service.log.LoggerFactory not found by org.apache.felix.scr [48]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 18 more
Attachments
Issue Links
- links to