Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46810E2E6 for ; Mon, 17 Dec 2012 17:30:13 +0000 (UTC) Received: (qmail 88679 invoked by uid 500); 17 Dec 2012 17:30:13 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 88640 invoked by uid 500); 17 Dec 2012 17:30:13 -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 88614 invoked by uid 99); 17 Dec 2012 17:30:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 17:30:12 +0000 Date: Mon, 17 Dec 2012 17:30:12 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-4704) Class loading problem using CXFNonSpringJaxrsServlet in OSGi environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534096#comment-13534096 ] Sergey Beryozkin commented on CXF-4704: --------------------------------------- I've added a class loader property; it is unfortunate servlet parameter values are supposed to be Strings, otherwise loaded instances could've been passed along. Registering JAX-RS Application as OSGI Service would need to be supported too... > Class loading problem using CXFNonSpringJaxrsServlet in OSGi environment > ------------------------------------------------------------------------ > > Key: CXF-4704 > URL: https://issues.apache.org/jira/browse/CXF-4704 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.6.2 > Environment: Apache Felix > Reporter: Valdas Jasaitis > > The JAX-RS proxy classes are not loaded when I try to use CXFNonSpringJaxrsServlet in Apache Felix. I get ClassNotFoundException. > The problem is that currently CXFNonSpringJaxrsServlet.loadClass always uses the ClassLoadUtils.loadClass which tries the following class loaders: > ThreadContextClassloader, > ClassLoader from CXFNonSpringJaxrsServlet, > Classloader from ClassLoaderUtils. > All of them are not compatible with OSGi. It would be good, to set an explicit classloader for the servlet. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira