[
https://issues.apache.org/jira/browse/SLING-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751441#action_12751441
]
Felix Meschberger commented on SLING-1097:
------------------------------------------
You have to set the ds.factory.enabled system property. I will add this
property to the Sling launcher in trunk soon.
The problem is, that the embedded repository bundle is depending on
non-standard implementation we had in previous SCR implementations. In the
current trunk state, I kept this behaviour for backwards compatibility but
added a switch which must be set to enable this behaviour.
I am still unsure what really is correct: requiring the switch to be set to get
the non-standard behaviour or requiring the switch to be set to disable
non-standard behaviour. The standards part of me says "switch must enable", the
user part of me says "switch may disable".
In short, just add
ds.factory.enabled=true
to the sling.properties and it should work.
> ResourceResolverFactory service missing after restarting repository
> --------------------------------------------------------------------
>
> Key: SLING-1097
> URL: https://issues.apache.org/jira/browse/SLING-1097
> Project: Sling
> Issue Type: Bug
> Components: Engine
> Affects Versions: Engine 2.0.4
> Reporter: Bertrand Delacretaz
> Priority: Minor
>
> Steps to reproduce:
> 1. Start launchpad/app
> 2. Stop and restart the org.apache.sling.jcr.jackrabbit.server bundle
> 3. http://localhost:8888/index.html now says "ResourceResolverFactory service
> missing, cannot service requests" which come from the SlingMainServlet's
> service() method.
> Stopping and restarting the
> org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl
> component has the same effect.
> In both cases, stopping and restarting the
> org.apache.sling.engine.impl.SlingMainServlet component solves the problem.
> The component is declared as follows in SlingMainServlet, looks ok to me:
> /** @scr.reference cardinality="0..1" policy="dynamic" */
> private JcrResourceResolverFactory resourceResolverFactory;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.