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 C5761CE40 for ; Tue, 2 Jul 2013 15:32:23 +0000 (UTC) Received: (qmail 7186 invoked by uid 500); 2 Jul 2013 15:32:22 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 7046 invoked by uid 500); 2 Jul 2013 15:32:21 -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 7000 invoked by uid 99); 2 Jul 2013 15:32:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 15:32:20 +0000 Date: Tue, 2 Jul 2013 15:32:20 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5102) schema resource loading code in various blueprint namespace handlers not working in some 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-5102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697887#comment-13697887 ] Daniel Kulp commented on CXF-5102: ---------------------------------- The ClassLoaderUtils stuff was first put in place many years ago. At that point, there were likely more problematic use cases. Anyway, if you've tested without the / with both Felix and Equinox, I'm OK. > schema resource loading code in various blueprint namespace handlers not working in some environment > ---------------------------------------------------------------------------------------------------- > > Key: CXF-5102 > URL: https://issues.apache.org/jira/browse/CXF-5102 > Project: CXF > Issue Type: Bug > Components: Configuration > Affects Versions: 2.6.8, 2.7.5 > Reporter: Aki Yoshida > Assignee: Aki Yoshida > > The local schema resource loading code of various blueprint namespace handlers uses the incorrect resource name syntax to load included resources, which the eclipse's classloader seems to tolerate but the standalone classloader has an issue with it. > As a result, using PojoSR, you will see the following warning for various cxf's xml-schemas because those schemas cannot be loaded from the specified resource paths. > 2013-06-29 16:49:18,008 [int Extender: 3] WARN NamespaceHandlerRegistryImpl - No URL is defined for schema http://cxf.apache.org/ws/rm/manager. This schema will not be validated > 2013-06-29 16:49:18,009 [int Extender: 3] WARN NamespaceHandlerRegistryImpl - No URL is defined for schema http://schemas.xmlsoap.org/ws/2005/02/rm/policy. This schema will not be validated > 2013-06-29 16:49:18,010 [int Extender: 3] WARN NamespaceHandlerRegistryImpl - No URL is defined for schema http://cxf.apache.org/ws/addressing. This schema will not be validated > Concretely, those namespace handlers are loading resources using the following syntax, for example when loading schemas/blueprint/something.xsd packaged in the jar. > getClass().getClassLoader(). > getResource("/schemas/blueprint/something.xsd") > However, when loading a resource over the class loader, it should use the relative path like: > getClass().getClassLoader(). > getResource("schemas/blueprint/something.xsd") -- 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