[ 
https://issues.apache.org/jira/browse/SLING-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13616164#comment-13616164
 ] 

Ian Boston commented on SLING-2788:
-----------------------------------

Errors from the logs:
First Startup:

28.03.2013 20:52:57.310 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.jackrabbit.mk.osgi.MicroKernelService)] 
org.apache.sling.jcr.contentloader.internal.Loader Cannot load initial content 
for bundle org.apache.sling.launchpad.content : TODO: 
org.apache.jackrabbit.oak.jcr.NodeImpl.lock() - dummy implementation 
javax.jcr.UnsupportedRepositoryOperationException: TODO: 
org.apache.jackrabbit.oak.jcr.NodeImpl.lock() - dummy implementation
        at org.apache.jackrabbit.oak.util.TODO.exception(TODO.java:83)
        at org.apache.jackrabbit.oak.util.TODO.call(TODO.java:99)
        at org.apache.jackrabbit.oak.util.TODO.returnValue(TODO.java:88)
        at org.apache.jackrabbit.oak.jcr.NodeImpl.lock(NodeImpl.java:1283)
        at 
org.apache.sling.jcr.contentloader.internal.ContentLoaderService.getBundleContentInfo(ContentLoaderService.java:331)
        at 
org.apache.sling.jcr.contentloader.internal.Loader.registerBundleInternal(Loader.java:141)
        at 
org.apache.sling.jcr.contentloader.internal.Loader.registerBundle(Loader.java:100)


8.03.2013 20:52:58.115 *ERROR* [pool-5-thread-1] 
org.apache.jackrabbit.oak.plugins.observation.ChangeProcessor Unable to 
generate or send events java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:394)
        at 
org.apache.sling.jcr.resource.internal.JcrResourceListener.sendOsgiEvent(JcrResourceListener.java:298)
        at 
org.apache.sling.jcr.resource.internal.JcrResourceListener.onEvent(JcrResourceListener.java:218)
        at 
org.apache.jackrabbit.oak.plugins.observation.ChangeProcessor$EventGeneratingNodeStateDiff.sendEvents(ChangeProcessor.java:154)
        at 
org.apache.jackrabbit.oak.plugins.observation.ChangeProcessor.run(ChangeProcessor.java:117)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
        at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)


28.03.2013 20:52:57.114 *WARN* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.jackrabbit.mk.osgi.MicroKernelService)] 
org.apache.jackrabbit.oak.jcr.ItemImpl Item#save is no longer supported. Please 
use Session#save instead.


28.03.2013 20:53:25.825 *INFO* [Apache Sling Job Background Loader] 
org.apache.jackrabbit.oak.security.authentication.AuthenticationConfigurationImpl
 Failed to retrieve login configuration: using default. 
java.lang.SecurityException: Unable to locate a login configuration


Subsequent Startups:

28.03.2013 20:55:57.115 *ERROR* [pool-5-thread-1] 
org.apache.jackrabbit.oak.plugins.observation.ChangeProcessor Unable to 
generate or send events java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:394)
        at 
org.apache.sling.jcr.resource.internal.JcrResourceListener.sendOsgiEvent(JcrResourceListener.java:298)
        at 
org.apache.sling.jcr.resource.internal.JcrResourceListener.onEvent(JcrResourceListener.java:225)


When performing: 
curl http://admin:admin@localhost:8080/.tidy.3.json
Full content is returned, but the following appears in the logs
28.03.2013 20:56:23.911 *INFO* [1449799553@qtp-1108447-0] 
org.apache.jackrabbit.oak.security.authentication.AuthenticationConfigurationImpl
 Failed to retrieve login configuration: using default. 
java.lang.SecurityException: Unable to locate a login configuration


When performing 
curl http://localhost:8080/.tidy.3.json
A 401 is returned with 
28.03.2013 20:57:48.740 *INFO* [1449799553@qtp-1108447-0] 
org.apache.sling.auth.core.impl.SlingAuthenticator handleLoginFailure: Unable 
to authenticate anonymous user: Login Failure: all modules ignored

Suspect Oak authentication is not configured.

Posts as admin using basic auth work fine.



                
> Sling running using Apache OAK
> ------------------------------
>
>                 Key: SLING-2788
>                 URL: https://issues.apache.org/jira/browse/SLING-2788
>             Project: Sling
>          Issue Type: Wish
>          Components: General
>            Reporter: Antonio Sanso
>            Assignee: Ian Boston
>
>  It would be nice to have a runMode of Sling that runs on top of Apache OAK 
> [0]
> [0] http://jackrabbit.apache.org/oak/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to