jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: model 2 repository startup exception
Date Sun, 16 Sep 2007 12:10:10 GMT

On 9/15/07, AJ Chen <canovaj@gmail.com> wrote:
> But, it throws an exception: java.lang.ClassCastException:
> org.apache.jackrabbit.core.jndi.BindableRepository
> Any idea why?

Do you have the jcr-1.0.jar included in your webapp? That could
explain the ClassCastException, i.e. if BindableRepository implements
the javax.jcr.Repository interface loaded from common/lib, but your
application is trying to cast it to javax.jcr.Repository loaded from
within your webapp's WEB-INF/lib.

The best practice for JCR webapps is to only include the jcr-1.0.jar
file in WEB-INF/lib if you also embed the repository implementation in
your webapp.


Jukka Zitting

View raw message