Hi,

I have a requirement where I want to access Magnolia repository from Apache
sling. More preciously I want to deploy my application on apache sling and
internally would like to refer magnolia repository for content storing. 

What I did so far as given below.

         1.     I downloaded the src from same site, and built the
org.apache.sling.jcr.jackrabbit.client-2.0.2-cubator.jar, and added to
sling\WEB-                      INF\resources\bundles.

       2.       Updated the configuration for this module with the magnolia
specific JNDI information.

        java.naming.factory.initial.name :
info.magnolia.jndi.InMemoryContextFactory

        java.naming.provider.url.name: http://www.magnolia.info/jcr

        Repository Name: magnoliaAuthor

        3.      Stop the "Sling - Jackrabbit embedded Repository" from OSGI
console.
 
        4. Start the "org.apache.sling.jcr.jackrabbit.client-2.0.2-cubator"
from OSGI console

I have able to access the magnolia repository using JNDI from sling. But
in-case of initial content loading "NodeTypeLoader" is not able to recognize
the nodeTypeManager for the accrued workspace and showing the following
warning in the log.

       "Repository does not implement JackrabbitNodeTypeManager, cannot
import node types"    

Further when I want to access the sling home page
[http://localhost:8080/sling] it's giving the following error message
followed by a blank screen.

        20.03.2009 19:35:56.737 *ERROR* [SCR Component Actor]
org.apache.sling.jcr.contentloader.internal.ContentLoaderService activate:
Problem while loading initial content and registering mappings for existing
bundles javax.jcr.nodetype.NoSuchNodeTypeException: sling:Folder: sling: is
not a registered namespace prefix.: sling: is not a registered namespace
prefix.
            
            at
org.apache.jackrabbit.core.nodetype.NodeTypeManagerImpl.getNodeType(NodeType
ManagerImpl.java:432)
            ... 13 more
 
Please let me know how I could integrate Magnolia Repository with Apace
sling.

Regards,
Sujoy Bhattacharjee




Reply via email to