You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2012/05/25 11:57:26 UTC

[jira] [Assigned] (SLING-2494) JCR Registration should be disabled by default

     [ https://issues.apache.org/jira/browse/SLING-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-2494:
----------------------------------------

    Assignee: Felix Meschberger
    
> 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
>
> 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