cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aki Yoshida (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5102) schema resource loading code in various blueprint namespace handlers not working in some environment
Date Wed, 03 Jul 2013 11:52:27 GMT

     [ https://issues.apache.org/jira/browse/CXF-5102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aki Yoshida resolved CXF-5102.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.6
                   2.6.9

regarding the 2.7.x changes, some files that are listed for trunk on the source tab are not
listed for 2.7.x, as those files were wrongly submitted with another ticket number, but these
files have been also integrated into 2.7.x.
                
> 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
>             Fix For: 2.6.9, 2.7.6
>
>
> 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

Mime
View raw message