On Sat, Jul 12, 2008 at 2:01 PM, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
> Lars Trieloff wrote:
>>
>> Hi,
>>
>> I am trying to connect Sling to a remote CRX (Day's commercial-grade
>> content repository, based on Jackrabbit) repository and it seems like I have
>> some problems with the Sling Authenticator.
>>
>> After uninstalling the embedded JCR repository and pointing the Foreign
>> JCR repository configuration to my RMI location I can verify in the debugger
>> that SlingClientRepository is able to acquire the repository reference. The
>> Repository Pinger reports success.
>>
>> However, the SlingAuthenticator is unable to verify my credentials (or the
>> anonymous login) because it tries to get hold of a repository but inspecting
>> the repositoryTracker reveals that it tracks not a single repository and
>> subsequently returns null.
>
> If the tracker would return null, you would get an exception thrown. (line
> 324 in SlingAuthenticator).
>
>>
>> My suspicion is that removing the embedded JCR repository bundle decreases
>> the tracker counter, but the tracker is unable to switch to the foreign
>> repository. So my question would be: is there a way to tell the
>> SlingAuthenticator to look again for repositories?
>
> The service tracker is tracking all services for a specific interface, in
> this case it's the Repository. The method getService() used in the
> SlingAuthenticator returns the first service. So could it be that there are
> still some old repository instances? Did you invoke refresh packages?

Quick question, is sling (or JCR) doing/using any java security
features? Due to the fact that we are talking about using rmi I would
assume there must be at least a SecurityManager around no?
Furthermore, is it possible that the Subject (as in java) is used
(directly or indirectly)?

regards,

Karl

> Carsten
>
> --
> Carsten Ziegeler
> [EMAIL PROTECTED]
>



-- 
Karl Pauls
[EMAIL PROTECTED]

Reply via email to