Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 69400 invoked from network); 2 Sep 2005 07:10:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Sep 2005 07:10:07 -0000 Received: (qmail 72896 invoked by uid 500); 2 Sep 2005 07:09:56 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 72834 invoked by uid 500); 2 Sep 2005 07:09:56 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 72810 invoked by uid 99); 2 Sep 2005 07:09:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 00:09:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 203.187.179.123 is neither permitted nor denied by domain of Jun.Tsai@gmail.com) Received: from [203.187.179.123] (HELO localhost) (203.187.179.123) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 00:10:09 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id ACBC932C35 for ; Fri, 2 Sep 2005 15:20:35 +0800 (CST) Message-ID: <4317FD43.9090705@gmail.com> Date: Fri, 02 Sep 2005 15:20:35 +0800 From: Jun Tsai User-Agent: Debian Thunderbird 1.0.2 (X11/20050817) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tapestry users Subject: Re: @InjectObject spring beans proxyed with Spring-AOP problem. References: <20050902064733.QZE12165.mta10.adelphia.net@PCASEY> In-Reply-To: <20050902064733.QZE12165.mta10.adelphia.net@PCASEY> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Patrick Casey wrote: > CGLIB is an enhancement library that a lot of open source packages > use to create dynamic proxies of your classes (usually to bolt on their > specific accessors and proxy code to your POJOs). It's used by both spring > and hibernate pretty extensively, and it looks like you've got spring > running. So what's happening is that spring is enhancing your class for you. > > *However* and this is the part where I get less helpful, an enhanced > class *should* be a subclass of the original class, hence it should still be > assignable. So, *in theory* you shouldn't get the error you're getting. In > theory, of course, theory and practice are the same. > > One (possible serious voodoo) things that often help: > > Make all the methods of your testService public (not package scope, > *public*). > > --- Pat > Thank your reply. If I don't use @InjectObject,I can get the TestService directly by Spring and the testService object works fine. why? Jun Tsai --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org