karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6259) SCR feature fails to install when using Equinox framework
Date Sun, 19 May 2019 16:10:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16843473#comment-16843473
] 

Grzegorz Grzybek commented on KARAF-6259:
-----------------------------------------

Ah, so R7 is great opportunity (same for pax-web 8.0.0) here. My changes in master-improvements
branch are not that breaking, I just made lot of refactoring, moving files around while trying
to keep the API as unchanged as possible. I'll describe all the changes when I'm done with
Log4J2.

> SCR feature fails to install when using Equinox framework
> ---------------------------------------------------------
>
>                 Key: KARAF-6259
>                 URL: https://issues.apache.org/jira/browse/KARAF-6259
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.5
>            Reporter: Amichai Rothman
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 4.3.0, 4.2.6
>
>
> When starting Karaf using Equinox framework, the SCR feature fails to install (stack
trace below). Needless to say, without SCR a whole lot of other stuff doesn't work, so Karaf
with Equinox is basically broken.
> Steps to recreate:
>  # Extract stock Karaf 4.2.5.
>  # In etc/config.properties change karaf.framework=felix to karaf.framework=equinox.
>  # Start Karaf.
>  # Run 'feature:install scr' and it will fail with the exception below.
>  
> 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.getLogge
> r(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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message