Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 30991 invoked from network); 16 May 2007 13:04:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2007 13:04:23 -0000 Received: (qmail 69350 invoked by uid 500); 16 May 2007 13:04:26 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 69334 invoked by uid 500); 16 May 2007 13:04:26 -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 69324 invoked by uid 99); 16 May 2007 13:04:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 06:04:26 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of nrdufour@gmail.com designates 64.233.184.226 as permitted sender) Received: from [64.233.184.226] (HELO wr-out-0506.google.com) (64.233.184.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 06:04:17 -0700 Received: by wr-out-0506.google.com with SMTP id 76so192639wra for ; Wed, 16 May 2007 06:03:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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:references; b=SBhIJxCMtrEZXXrzRaaJqhL7eHa1d3FAxN141T7b1nMzQ07fvkNBOFZ8gUJsIyay1lYMzV0rc+y6CldxVzGGQRAl8UY7BSrN2yN54+NHnyvwwSVh89kFw4h713aOXxQoPFbaxqDRzNsQjgNKM9atH5Fcga7pMgUu9+CyYIuPAqU= 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:references; b=JvmSb7SHhHkLzFYwj1zClAyuc5VoaiLb5ag9L67Dds5pRfetNabYg82XXLdaK6DBSIzDmkpOOg5IFaUknFdPHEXocpPCXd0uV63bK1VVqVU7gPhDn5WYZC/9wQdwxFqC+XsK3ClafPb6g8b86189+aChzlC4SaBoCqYYtlc6/nE= Received: by 10.78.180.18 with SMTP id c18mr2843138huf.1179320635555; Wed, 16 May 2007 06:03:55 -0700 (PDT) Received: by 10.78.180.5 with HTTP; Wed, 16 May 2007 06:03:55 -0700 (PDT) Message-ID: <8503442c0705160603h69511381h20afc94dd18a8782@mail.gmail.com> Date: Wed, 16 May 2007 09:03:55 -0400 From: "Nicolas Dufour" To: users@jackrabbit.apache.org Subject: Re: Strange error between Tomcat, Jackrabbit and Spring In-Reply-To: <10635958.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6072_30172008.1179320635482" References: <8503442c0705151017p179e8a69ibc0d7c3f6d1fcbff@mail.gmail.com> <510143ac0705151116l40623fd9sbf9f5293ea2608c9@mail.gmail.com> <10635958.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6072_30172008.1179320635482 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yup thanks to both of you. I have put twice jackrabbit/jcr jars in common/lib and in the application and 2 definitions of the resources ! So a bit too much ;) Kaylan, yup I think you're right: installing the jcr as the system jars like the mysql connector. Thanks Nicolas On 5/16/07, Kalyan Sarkar wrote: > > > Hi, > I think the jcr jar should be placed in the app server lib as a practice > and > not bundled with the application itself. > > Regards, > Kalyan Sarkar > > > Jukka Zitting wrote: > > > > Hi, > > > > On 5/15/07, Nicolas Dufour wrote: > >> I got a very strange error by launching my application : > >> > >> java.lang.IllegalArgumentException: Cannot convert value of type [ > >> org.apache.jackrabbit.core.jndi.BindableRepository] to required type [ > >> javax.jcr.Repository] for property 'repository': no matching editors or > >> conversion strategy found > >> [...] > >> Any idea are welcome :) > > > > You are most likely loading the JCR API classes from multiple > > different class loaders. For example if the BindableRepository > > instance you have configured implements Repository from class loader A > > and your application is using the Repository interface from class > > loader B, then the exception makes perfect sense. > > > > Check that the JCR API interfaces are loaded by a shared class loader. > > > > BR, > > > > Jukka Zitting > > > > > > -- > View this message in context: > http://www.nabble.com/Strange-error-between-Tomcat%2C-Jackrabbit-and-Spring-tf3759876.html#a10635958 > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > > ------=_Part_6072_30172008.1179320635482--