Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
In revision 1693392 rombert moved the o.a.s.installer.factory.configuration bundle to the :boot section (start level 1), and this prevents the Jackrabbit SlingRepository from running.
Below is the logs which show that the installer wrongly deletes the repository configuration, probably due to interference with the config writeback under /apps/sling/install.org.apache.sling.jcr.jackrabbit.server.SlingServerRepository-<pid>. If I set a breakpoint in the ConfigRemoveTask and set its cfg variable to null to prevent it from removing the config, all is well.
Log excerpts:
$ egrep 'verifyConfig|SlingServer.*REGISTERED|Deleted.*SlingServer|Repository
has been' sling/logs/error.log
04.08.2015 16:36:32.198 INFO [OsgiInstallerImpl]
org.apache.sling.jcr.jackrabbit.server.impl.Activator
verifyConfiguration: Created configuration
org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.98b4bd1c-11f8-49e7-a5ed-684abf3acfc6
for org.apache.sling.jcr.jackrabbit.server.SlingServerRepository
04.08.2015 16:36:37.482 INFO [OsgiInstallerImpl]
org.apache.sling.jcr.jackrabbit.server Service
[org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.98b4bd1c-11f8-49e7-a5ed-684abf3acfc6,229,
[org.apache.sling.jcr.api.SlingRepository, javax.jcr.Repository,
org.apache.jackrabbit.api.management.RepositoryManager]] ServiceEvent
REGISTERED
04.08.2015 16:36:38.783 INFO [CM Event Dispatcher (Fire
ConfigurationEvent:
pid=org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.98b4bd1c-11f8-49e7-a5ed-684abf3acfc6)]
org.apache.jackrabbit.core.RepositoryImpl Repository has been shutdown
04.08.2015 16:45:25.610 INFO [OsgiInstallerImpl]
org.apache.sling.audit.osgi.installer Deleted configuration
org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.98b4bd1c-11f8-49e7-a5ed-684abf3acfc6
from resource TaskResource(url=jcrinstall:/apps/sling/install/org.apache.sling.jcr.jackrabbit.server.SlingServerRepository-98b4bd1c-11f8-49e7-a5ed-684abf3acfc6.config,
entity=config:org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.98b4bd1c-11f8-49e7-a5ed-684abf3acfc6,
state=UNINSTALL,
attributes=[service.factoryPid=org.apache.sling.jcr.jackrabbit.server.SlingServerRepository,
installation.hint=launchpad:resources/install.jackrabbit/15/org.apache.sling.jcr.jackrabbit.server-2.2.1-SNAPSHOT.jar,
resource.uri.hint=org.apache.sling.jcr.jackrabbit.server.SlingServerRepository-98b4bd1c-11f8-49e7-a5ed-684abf3acfc6,
service.pid=org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.98b4bd1c-11f8-49e7-a5ed-684abf3acfc6],
digest=588c513978ea07a8a9091048913e231e)