Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 4632 invoked from network); 5 Mar 2009 19:40:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 19:40:17 -0000 Received: (qmail 18298 invoked by uid 500); 5 Mar 2009 19:40:17 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 18286 invoked by uid 500); 5 Mar 2009 19:40:17 -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 18273 invoked by uid 99); 5 Mar 2009 19:40:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 11:40:17 -0800 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; Thu, 05 Mar 2009 19:40:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 26713234C48D for ; Thu, 5 Mar 2009 11:39:56 -0800 (PST) Message-ID: <541796544.1236281996142.JavaMail.jira@brutus> Date: Thu, 5 Mar 2009 11:39:56 -0800 (PST) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2085) Applications classloader should be set during method invocations. In-Reply-To: <483673137.1236177836938.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679319#action_12679319 ] Sergey Beryozkin commented on CXF-2085: --------------------------------------- Hi Can you provide some simple test case please ? I'm not sure I understand. If a class lazily loaded when one of the resource class methods is being invoked then the resource class loader will be used to load the class first... > Applications classloader should be set during method invocations. > ----------------------------------------------------------------- > > Key: CXF-2085 > URL: https://issues.apache.org/jira/browse/CXF-2085 > Project: CXF > Issue Type: Bug > Affects Versions: 2.2 > Reporter: Chaitanya Choleti > Fix For: 2.2 > > > Invocation of a JAX-RS method may depend on some application classes which may not be loaded already, they will be loaded during invocation. But during invocation the classloader will be CXF war application classloader, this will lead to NoClassDefFoundErrors. To avoid this root resource class' classloader should be set on the current thread. > Similar fix should be applied to provider methods such as readFrom, writeTo etc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.