Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 20858 invoked from network); 5 May 2009 19:12:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 19:12:17 -0000 Received: (qmail 23473 invoked by uid 500); 5 May 2009 19:12:17 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 23394 invoked by uid 500); 5 May 2009 19:12:16 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 23383 invoked by uid 500); 5 May 2009 19:12:16 -0000 Delivered-To: apmail-incubator-cxf-user@incubator.apache.org Received: (qmail 23374 invoked by uid 99); 5 May 2009 19:12:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 19:12:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nicolas.deloof@gmail.com designates 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 19:12:07 +0000 Received: by fg-out-1718.google.com with SMTP id e21so1647501fga.3 for ; Tue, 05 May 2009 12:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=9qiNmnuKWSgKPBdcu73jrXKtkVyj5oxPchrd0ESpVKA=; b=aPhQ+Rh53b10dOdK82t7fEJFxqkHWErGpTutjCj1hyulBTM691W5ex8yMkLFvq0l+v 69CiiP8Ff4/pUdabHR7/NUmdc+8qnfzN96ZWuY1edxPyPfdxofDKEgwoi3zFJdkmAXyJ 5oI8Tf/bclnDQ9b1Jq/4/kJ5Skx+eV37CO25Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Yj5rSjGQWLPxdjbkFt0+foQ0ZixbFZ9KiwQRJNCl+OrJOcmwAQiWapGb+rAmCdEKlz lWGhJMRPxrMcJx2uxvLV4tuScZKrhZ2fqDAQ7FlZwjnXBoVeoxknEMRPtAfH71OTQDoD h6xg9bvsfYkzPbok0pHdwqrdKUbEQx8R6wdjw= MIME-Version: 1.0 Received: by 10.86.29.8 with SMTP id c8mr503448fgc.7.1241550647091; Tue, 05 May 2009 12:10:47 -0700 (PDT) In-Reply-To: <200905051500.13065.dkulp@apache.org> References: <4c39e3030905040626i373bd5a8l73dac96b0dc0711e@mail.gmail.com> <200905051500.13065.dkulp@apache.org> From: nicolas de loof Date: Tue, 5 May 2009 21:10:32 +0200 Message-ID: <4c39e3030905051210r20768e9eo969be76bac1971e8@mail.gmail.com> Subject: Re: issue with and Spring-aop To: Daniel Kulp Cc: users@cxf.apache.org, cxf-user@incubator.apache.org Content-Type: multipart/alternative; boundary=000e0cd2981a4a63bd04692f096c X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2981a4a63bd04692f096c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Beeing Java5 Proxy as a jaxws spec requirement I'd need to use Proxy-based AOP, but then fall into the @Resource issue I reported. I've changed my AOP settings to use compile-time aspectJ for jaxws client instrumentation (from callers). 2009/5/5 Daniel Kulp > > jaxws:client would generate a Java 5 proxy, not a CGLIB proxy. (that's > kind > of per jaxws spec) My guess is that java5 proxies are final. Can you > set > the aop stuff to use the java5 proxies instead of the CGLIB? > > Dan > > > On Mon May 4 2009 9:26:53 am nicolas de loof wrote: > > Hi guys, > > I'm running into a CGLIB issue when trying to setup spring-aop on : > > > > > serviceClass="....MetierServicePortType" > > address="${metierService.url}"> > > > > > > My monitoring framework uses spring-AOP (ApscetJ syntax) to instrument > > beans > > > > > > @Around( "SystemArchitecture.externalWebServiceCall()" ) > > public Object log( ProceedingJoinPoint jp ) { ... } > > > > @Pointcut( "bean(*PortType)" ) > > public void externalWebServiceCall() {} > > > > With this configuration I get an exception : > > > > Caused by: org.springframework.aop.framework.AopConfigException: Could > not > > generate CGLIB subclass of class [class $Proxy169]: Common causes of this > > problem include using a final class or a non-visible class; nested > > exception is java.lang.IllegalArgumentException: Cannot subclass final > > class class $Proxy169 > > at > > > org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.ja > >va:213) at > > > org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:1 > >10) > > > > From my understanding, creates a CGLIB proxy as web > service > > client bean, and my AOP frameworks also tries to create one BUT the first > > CGLIB class is created as FINAL. > > Is there any workaround ? > > > > Nicolas > > -- > Daniel Kulp > dkulp@apache.org > http://www.dankulp.com/blog > --000e0cd2981a4a63bd04692f096c--