Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 26724 invoked from network); 16 Sep 2007 12:10:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2007 12:10:40 -0000 Received: (qmail 91964 invoked by uid 500); 16 Sep 2007 12:10:32 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 91944 invoked by uid 500); 16 Sep 2007 12:10:32 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 91935 invoked by uid 99); 16 Sep 2007 12:10:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 05:10:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jukka.zitting@gmail.com designates 209.85.198.190 as permitted sender) Received: from [209.85.198.190] (HELO rv-out-0910.google.com) (209.85.198.190) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 12:10:31 +0000 Received: by rv-out-0910.google.com with SMTP id k20so1011296rvb for ; Sun, 16 Sep 2007 05:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=McBkz49X47Hzyjmonwk8KL12+lUCpSZg+jclPqWTihk=; b=b6RFaaVKP8BQOLx7tr9SA+4pd1Va/M5cqnpmGle9dbAF2MlVkAARxZKg/rkaQ4yoDN1Z1/326VstaBveLRinYcPoS2mti5jkNXfi4qVkD96DkGffCEXLlMn8rbSzLuKQC2YUTl/7QUUVupD/58wLH/MHhcs7+0rt6lakyeGwl8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BerJMJvpsKuKyoHdEgFmFQNIpzCS7hiFH3lJK65UyGecF4klJV/LATEU62/jjO2HMixIzHZoG7ZfDm7ULbiaJAxMbs7glqgg0hI0Bgwvw38t+tq7kRWxhUSU0cz6mLNuBN5HPBQv3MFsRFC6IbEUaw+fN+AraydVUvmRo2XRuJM= Received: by 10.141.20.7 with SMTP id x7mr506156rvi.1189944610933; Sun, 16 Sep 2007 05:10:10 -0700 (PDT) Received: by 10.141.27.5 with HTTP; Sun, 16 Sep 2007 05:10:10 -0700 (PDT) Message-ID: <510143ac0709160510u55f114e1k52aa162d1a00daaa@mail.gmail.com> Date: Sun, 16 Sep 2007 15:10:10 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: model 2 repository startup exception In-Reply-To: <70055a110709151328v55db509axe8ff433dcfc6cf27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <70055a110709151328v55db509axe8ff433dcfc6cf27@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 9/15/07, AJ Chen 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