karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf 4.2.5 + Equinox + SCR: error
Date Fri, 17 May 2019 03:52:05 GMT
Hi,

yes, it's already identify. I'm working on
https://issues.apache.org/jira/browse/KARAF-6259 for Karaf 4.2.6.

Regards
JB

On 16/05/2019 22:11, Markus Rathgeb wrote:
> Hi,
> 
> is it already known that using Equinox on Karaf 4.2.5 will result into
> an exception if the "scr" feature is installed?
> 
> * Unpack official distribution (tar xzf apache-karaf-4.2.5.tar.gz)
> * Edit "etc/custom.properties" and add the line "karaf.framework = equinox"
> * start Karaf
> * install SCR feature (feature:install scr)
> * identify an error
> 
> ===
> karaf@root()> feature:install scr
> org.apache.karaf.features.internal.util.MultiException: Error
> restarting bundles:
>         Exception in org.apache.felix.scr.impl.Activator.start() of
> bundle org.apache.felix.scr.
>         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1005)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
>         Suppressed: org.osgi.framework.BundleException: Exception in
> org.apache.felix.scr.impl.Activator.start() of bundle
> org.apache.felix.scr.
>                 at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:836)
>                 at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:765)
>                 at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
>                 at
> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
>                 at org.eclipse.osgi.container.Module.doStart(Module.java:589)
>                 at org.eclipse.osgi.container.Module.start(Module.java:457)
>                 at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:431)
>                 at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:450)
>                 at
> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
>                 at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1149)
>                 at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997)
>                 ... 6 more
>         Caused by: java.lang.AbstractMethodError:
> org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl$1ManagedPaxLoggingService.getLogger(Ljava/lang/String;Ljava/lang/Class;)Lorg/osgi/service/log/Logger;
>                 at
> org.apache.felix.scr.impl.logger.R7LogServiceLogger.<init>(R7LogServiceLogger.java:35)
>                 at
> org.apache.felix.scr.impl.logger.LogServiceSupport.getLogger(LogServiceSupport.java:69)
>                 at
> org.apache.felix.scr.impl.logger.LogServiceEnabledLogger.getLogger(LogServiceEnabledLogger.java:106)
>                 at
> org.apache.felix.scr.impl.logger.AbstractLogger.isLogEnabled(AbstractLogger.java:71)
>                 at
> org.apache.felix.scr.impl.logger.AbstractLogger.log(AbstractLogger.java:90)
>                 at
> org.apache.felix.scr.impl.Activator.restart(Activator.java:137)
>                 at
> org.apache.felix.scr.impl.config.ScrConfigurationImpl.configure(ScrConfigurationImpl.java:217)
>                 at
> org.apache.felix.scr.impl.config.ScrConfigurationImpl.start(ScrConfigurationImpl.java:120)
>                 at org.apache.felix.scr.impl.Activator.start(Activator.java:100)
>                 at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:815)
>                 at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>                 at java.security.AccessController.doPrivileged(Native Method)
>                 at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:808)
>                 ... 16 more
> Error executing command: Error restarting bundles:
>         Exception in org.apache.felix.scr.impl.Activator.start() of
> bundle org.apache.felix.scr.
> ===
> 
> Best regards,
> Markus
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message