Hi, On 9/15/07, AJ Chen <[EMAIL PROTECTED]> 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. BR, Jukka Zitting
