Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 36943 invoked from network); 3 Apr 2009 14:46:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 14:46:39 -0000 Received: (qmail 94799 invoked by uid 500); 3 Apr 2009 14:46:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 94777 invoked by uid 500); 3 Apr 2009 14:46:34 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 94736 invoked by uid 99); 3 Apr 2009 14:46:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 14:46:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 14:46:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DD69F234C003 for ; Fri, 3 Apr 2009 07:46:12 -0700 (PDT) Message-ID: <2007860986.1238769972891.JavaMail.jira@brutus> Date: Fri, 3 Apr 2009 07:46:12 -0700 (PDT) From: "Gyorgy Orban (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2152) Certain Spring AOP proxies cannot be used any more as service bean since CXF 2.1.4 because the real (non-proxy) target class is not found correctly by SpringAopClassHelper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Certain Spring AOP proxies cannot be used any more as service bean since CXF 2.1.4 because the real (non-proxy) target class is not found correctly by SpringAopClassHelper --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Key: CXF-2152 URL: https://issues.apache.org/jira/browse/CXF-2152 Project: CXF Issue Type: Bug Components: JAX-WS Runtime Affects Versions: 2.1.4 Reporter: Gyorgy Orban Attachments: SpringAopClassHelper.patch This issue has come up because of a change in SpringAopClassHelper. There are two ways of creating a proxy with org.springframework.aop.framework.ProxyFactory: either by setting the target instance using the setTarget method, or using the setTargetClass method. If the latter is used, Advised.getTargetSource().getTarget() will return null, because no target instance exists. The former implementation of SpringAopClassHelper used AopUtils.getTargetClass, which handled the latter case correctly. Although the current implementation still uses AopUtils.getTargetClass, it never gets executed. Please find the patch attached that handles both types of aop proxies for us. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.