jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sajith Puravankara <sajith...@thinkcoretech.com>
Subject Jackrabbit model 2 implementation with spring
Date Tue, 29 Dec 2009 13:36:14 GMT

I am new to jackrabbit. I want to setup a content repository for my spring
web application.

I am using the tomcat 6.0.13 , spring framework 2.0 and
jackrabbit-standalone-1.5.7.jar and jcr-1.0.jar

I did the configuration like this.


      <description>Content Repository</description>
<!-- JNDI Document Repository for J2EE environments -->
    <bean id="docRepository"
         <property name="jndiName" value="java:comp/env/jcr/repository" />

<!-- Default set of monitored resources -->

<Resource name="jcr/repository" auth="Container" type="javax.jcr.Repository"

            repHomeDir="E:\testrepository" />

*tomcat/lib folder
i put the jackrabbit-standalone-1.5.7.jar and jcr-1.0.jar in this folder

In the controller( spring) i added the code like this to get the repository

context = new InitialContext();
            Context environment = (Context) context.lookup("java:comp/env");
            Repository repository =

Now it is throwing ClassCastException: cannot cast from BindableRepository
to javax.jcr.Repository

What will be the problem.

There is any available for the spring jackrabbit implementation.

I have multiple war files deployed in the server.
So what deployment model will best suited?

View raw message