jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pingu1611 <gareth.no...@virgin.net>
Subject Shared JNDI with Tomcat
Date Mon, 19 May 2008 22:59:58 GMT


Thanks in advance for any help you may be able to give. I've searched the
net for a couple of days now but with no success (even with similar messages
posted on this site). 

What I'm trying to do is setup global JNDI on tomcat 5.5 for use with
jackrabbit and Magnolia CMS but either it's not working or I have lost the

A previous message on this subject said to include the resource in the
GlobalNamingResources element of server.xml along with the ResourceLink in
context.xml. This is what I have: 

in server.xml

<Resource name="magnoliaAuthor" 

                  repHomeDir="c:/magnoliarepo/magnolia" /> 

in context.xml

<ResourceLink global="magnoliaAuthorGlobal" name="magnoliaAuthor"
type="javax.jcr.Repository" /> 

and in web.xml 

         <description>Jackrabbit Repository</description> 

Using this configuration doesn't appear to work as when I put some debugging
in my servlet the jndi context is empty. 

The piece of servlet code is: 

            Context initContext = new InitialContext (); 
            Context envContext  = (Context)initContext.lookup
            Object o = envContext.lookup ("magnoliaAuthor"); // Should this
be the global name (doesn't work either way). 
            BindableRepository repo = (BindableRepository) o; 

Hope someone can point me in the right direction. 



View this message in context: http://www.nabble.com/Shared-JNDI-with-Tomcat-tp17329972p17329972.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message