jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhathiya Jayasekara <tobhathi...@gmail.com>
Subject Re: 'Invalid namespace index' exception which Apache Sling integration
Date Thu, 05 Jul 2012 16:09:04 GMT
Hi all,

I replaced jackrabbit repository.xml's 'Security' configuration element
with following part and now that 'login credentials ignored' problem is
solved. :D Now it works smoothly.

    *<Security appName="Jackrabbit">*
*        <SecurityManager
class="org.apache.jackrabbit.core.DefaultSecurityManager"
workspaceName="security">*
*        </SecurityManager>*
*
*
*        <AccessManager
class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultAccessManager">
*
*        </AccessManager>*
*
*
*        <LoginModule
class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultLoginModule">
*
*            <param name="anonymousId" value="anonymous"/>*
*            <param name="adminId" value="admin"/>*
*        </LoginModule>*
*    </Security>*
*
*
Thanks all,

Regards,
*
*
*
*

On Mon, Jul 2, 2012 at 7:37 PM, Bhathiya Jayasekara
<tobhathiyaj@gmail.com>wrote:

> Hi Jukka,
>
> I did the same with jackrabbit 2.4.2 with Sling Launchpad 7 which uses
> jackrabbit 2.4.2. But I still get the following error in Sling error.log.
> Any thoughts please?
>
>  02.07.2012 19:22:35.916 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.RepositoryImpl workspace 'security' initialized
> 02.07.2012 19:22:35.917 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.DefaultSecurityManager init: use Repository
> Login-Configuration for Jackrabbit
> 02.07.2012 19:22:35.983 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.RepositoryImpl Repository started (6694ms)
> 02.07.2012 19:22:35.992 *INFO* [FelixStartLevel]
> org.apache.sling.jcr.jackrabbit.server pingAndCheck; loginAdministrative
> failed (javax.jcr.LoginException: LoginModule ignored Credentials)
> javax.jcr.LoginException: LoginModule ignored Credentials
>  at
> org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1493)
> at
> org.apache.sling.jcr.base.AbstractSlingRepository.login(AbstractSlingRepository.java:205)
>  at
> org.apache.sling.jcr.base.AbstractSlingRepository.loginAdministrative(AbstractSlingRepository.java:171)
> at
> org.apache.sling.jcr.base.AbstractSlingRepository.pingAndCheck(AbstractSlingRepository.java:499)
>  at
> org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:755)
> at
> org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:581)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
> at
> org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
>  at
> org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
> at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
>  at
> org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
> at
> org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
>  at
> org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
> at
> org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
>  at
> org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
> at
> org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:157)
>  at
> org.apache.felix.scr.impl.config.ConfiguredComponentHolder.enableComponents(ConfiguredComponentHolder.java:262)
> at
> org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:253)
>  at
> org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
> at
> org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
>  at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
> at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
>  at
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
>  at
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
> at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3758)
>  at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
>  at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.security.auth.login.FailedLoginException: LoginModule
> ignored Credentials
> at
> org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:87)
>  at
> org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1465)
> ... 33 more
> 02.07.2012 19:22:35.993 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.RepositoryImpl Shutting down repository...
> 02.07.2012 19:22:35.998 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.query.lucene.SearchIndex Index closed:
> /home/bhathiya/Apps/jackrabbit/jackrabbit/repository/index
> 02.07.2012 19:22:35.999 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.RepositoryImpl shutting down workspace
> 'default'...
> 02.07.2012 19:22:35.999 *INFO* [FelixStartLevel]
> org.apache.jackrabbit.core.observation.ObservationDispatcher Notification
> of EventListeners stopped.
>
> Thanks in advance.
>
> Best Regards,
>
> --Bhathiya
>
>
>
> On Mon, Jul 2, 2012 at 5:29 PM, Jukka Zitting <jukka.zitting@gmail.com>wrote:
>
>> Hi,
>>
>> On Mon, Jul 2, 2012 at 1:55 PM, Bhathiya Jayasekara
>> <tobhathiyaj@gmail.com> wrote:
>> > Thank you for the reply. Since the issue was about namespace indices, I
>> > compared ns_idx.properties file in embedded and external repositories
>> and I
>> > could find the indices were different in those 2. May be a jackrabbit
>> > version problem.
>>
>> Sounds like a likely reason. You can upgrade to a more recent
>> Jackrabbit version, but using an existing Jackrabbit repository with
>> an older version of Jackrabbit is not guaranteed to work.
>>
>> BR,
>>
>> Jukka Zitting
>>
>
>
>
>
>


-- 
-Bhathiya Jayasekara-
http://www.google.com/profiles/tobhathiyaj
http://www.facebook.com/#!/bhathiyaj1

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message