[
https://issues.apache.org/jira/browse/SLING-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Felix Meschberger resolved SLING-2494.
--------------------------------------
Resolution: Fixed
Fix Version/s: JCR Registration 1.0.0
Thanks for reporting. This makes perfect sense.
I have changed the configuration policy to REQUIRED in Rev. 1342555
> JCR Registration should be disabled by default
> ----------------------------------------------
>
> Key: SLING-2494
> URL: https://issues.apache.org/jira/browse/SLING-2494
> Project: Sling
> Issue Type: Improvement
> Components: JCR
> Affects Versions: JCR Registration 1.0.0
> Reporter: Chetan Mehrotra
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: JCR Registration 1.0.0
>
>
> The current set of JCR registration component RmiRegistrationSupport and
> JndiRegistrationSupport have Component-> immediate set to true which causes
> them to activate on default startup. This behavior should be changed to false
> with activation policy set to ConfigurationPolicy.REQUIRE i.e. should be an
> opt in activation. For both components the default behavior causes issue
> RmiRegistrationSupport - It causes issue in embedding Sling in an AppServer
> application as the default RMI port is already in use.
> JndiRegistrationSupport - The default config refer to
> org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory which is
> part of Jackrabbit core bundle which is already in OSGi. In my case I need to
> use com.day.util.jndi.provider.MemoryInitialContextFactory as that is the one
> present in parent classloader.
> Hence in both cases we see exception stacktrace on the first startup and then
> a user needs to modify the values. For now I am able to workaround that by
> provide explicit config in packaged war which disables RMI support but it
> would be helpful if the default behavior is changed
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira