[ https://issues.apache.org/jira/browse/SLING-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601876#action_12601876 ]
Felix Meschberger commented on SLING-501: ----------------------------------------- This only occurrs when using the release maven-scr-plugin with the new SNAPSHOT declarative services. The problem is that the released maven-scr-plugin forcibly sets the immediate attribute of the component element to true. This has been fixed in the latest trunk version of the maven-scr-plugin (of which I did not deploy a new SNAPSHOT because it would also include other changes...). Therefore, I do not think, this is a blocker actually. Because the RequestLoggerService itself is correct in not declaring the immediate attribute. A workaround fix would be to manually set the immediate attribute to false. But I am not sure, whether this is a good idea given that this situation only arises when using the SNAPSHOT declarative services. > RequestLoggerService does not run with latest SCR implementation from Felix > --------------------------------------------------------------------------- > > Key: SLING-501 > URL: https://issues.apache.org/jira/browse/SLING-501 > Project: Sling > Issue Type: Bug > Components: Engine > Affects Versions: 2.0.0 > Reporter: Carsten Ziegeler > Priority: Blocker > Fix For: 2.0.0 > > > The latest changes in the SCR implementation of Apache Felix break our > current impl: > 03.06.2008 11:30:48.952 *ERROR* [FelixStartLevel] org.apache.sling.engine > General problem with descriptor entry 'OSGI-INF/serviceComponents.xml' > (org.osgi.service.component.ComponentException: Component > org.apache.sling.engine.impl.log.RequestLoggerService validation failed: > Factory cannot be immediate) org.osgi.service.component.ComponentException: > Component org.apache.sling.engine.impl.log.RequestLoggerService validation > failed: Factory cannot be immediate > at > org.apache.felix.scr.impl.ComponentMetadata.validationFailure(ComponentMetadata.java:352) > at > org.apache.felix.scr.impl.ComponentMetadata.validate(ComponentMetadata.java:314) > at org.apache.felix.scr.impl.XmlHandler.endElement(XmlHandler.java:244) > at > org.apache.felix.scr.impl.parser.KXml2SAXParser.parseXML(KXml2SAXParser.java:77) > at > org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:154) > at > org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:110) > at > org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:227) > at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:173) > at > org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:690) > at > org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:619) > at > org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:532) > at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3601) > at org.apache.felix.framework.Felix._startBundle(Felix.java:1616) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1544) > at > org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125) > at > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258) > at java.lang.Thread.run(Thread.java:613) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.