Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 60116 invoked from network); 19 Feb 2009 13:05:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 13:05:37 -0000 Received: (qmail 5223 invoked by uid 500); 19 Feb 2009 13:05:30 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 5199 invoked by uid 500); 19 Feb 2009 13:05:30 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 5179 invoked by uid 99); 19 Feb 2009 13:05:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 05:05:30 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 13:05:20 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1La8aF-0007NG-5f for users@cocoon.apache.org; Thu, 19 Feb 2009 13:04:55 +0000 Received: from 77-56-90-137.dclient.hispeed.ch ([77.56.90.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 13:04:55 +0000 Received: from andreas by 77-56-90-137.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 13:04:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Andreas Hartmann Subject: Re: [2.2] Spring class loading issue: WebAppClassLoader vs. ResourceStoreClassLoader Date: Thu, 19 Feb 2009 14:03:55 +0100 Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77-56-90-137.dclient.hispeed.ch User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) In-Reply-To: Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Andreas Hartmann schrieb: > Hi Cocooners, > > in my C2.2 application, I have two modules "usecase" and "acusecases", > with acusecases depending on usecase. usecase is a block, acusecases isn't. > > A bean in acusecases shall get a reference to another bean defined in > acusecases. The class of this bean is declared in usecase. > > Now I get the following exception: > > org.springframework.beans.TypeMismatchException: Failed to convert > property value of type [org.apache.lenya.cms.usecase.UsecaseView] to > required type [org.apache.lenya.cms.usecase.UsecaseView] for property > 'view' > > Since the class is the same, the classloader is the source of the > problem. Using the debugger I found out that the bean (from the > acusecases module) is loaded using a WebAppClassLoader, but the class > (from the usecase module) is loaded using a ResourceStoreClassLoader. The issue could be resolved by removing the usecase block from rcl.properties. Apparently it's not possible to mix non-RCL projects with RCL-enabled blocks. Is this the case? Thanks for any comments, -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org