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 84FB8927C for ; Mon, 26 Mar 2012 15:04:47 +0000 (UTC) Received: (qmail 10796 invoked by uid 500); 26 Mar 2012 15:04:47 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 10768 invoked by uid 500); 26 Mar 2012 15:04:47 -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 10760 invoked by uid 99); 26 Mar 2012 15:04:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 15:04:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 15:04:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 45FF53477F7 for ; Mon, 26 Mar 2012 15:04:26 +0000 (UTC) Date: Mon, 26 Mar 2012 15:04:26 +0000 (UTC) From: "Willem Jiang (Updated) (JIRA)" To: issues@cxf.apache.org Message-ID: <1047174446.17664.1332774266299.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1450274769.16397.1332746551146.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CXF-4203) CXF bundle need to imports the jaas related package 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 [ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang updated CXF-4203: ------------------------------ Comment: was deleted (was: sorry, it's a false alarm. The error is introduced by other classloader hacking. I just test my application with karaf 2.2.5 and CXF 2.5.3, it works.) > CXF bundle need to imports the jaas related package > --------------------------------------------------- > > Key: CXF-4203 > URL: https://issues.apache.org/jira/browse/CXF-4203 > Project: CXF > Issue Type: Bug > Components: OSGi > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 2.4.7, 2.5.3 > > > When I try to publish the JAXRS example with basic http authentication from blueprint, I got the complain that some jaas related packages can not be load by cxf bundle. > {code} > Caused by: java.lang.ClassNotFoundException: org.apache.karaf.jaas.modules.RolePrincipal not found by org.apache.cxf.bundle [158] > at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1461) > at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:73) > at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1844) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1745) > at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:929) > at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) > at org.ops4j.pax.swissbox.core.BundleClassLoader.loadClass(BundleClassLoader.java:194) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > at org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:294) > ... 39 more > {code} > BY adding the packages of "org.eclipse.jetty.plus.jaas" and "org.apache.karaf.jaas.modules" into the dynamic import section of cxf bundle can fix the issue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira