cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo Kraan (Closed) (JIRA)" <>
Subject [jira] [Closed] (CXF-3917) Schema validation does not resolve relative schema locations
Date Fri, 18 Nov 2011 14:04:53 GMT


Pablo Kraan closed CXF-3917.

    Resolution: Not A Problem

We found a different solution to the problem: there is a bug in one of the libraries we use:
Applying that patch solves the issue without needing the CXF patch.
> Schema validation does not resolve relative schema locations
> ------------------------------------------------------------
>                 Key: CXF-3917
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.1
>            Reporter: Pablo Kraan
>         Attachments: cxfRelativeSchemaValidation.patch
> Relative schema location works OK when schema validation is not enabled, but when is
enabled the validator is not able to properly resolve the relative schema locations.
> The problem is simple: the ResolvingGrammarReaderController does not try to resolve the
relative schema files, it just returns null every time is invoked, so the relative schema
files are not resolved using the WSDL base path, they are attempted to be resolved using the
base path of the running application. The fix is just to pass the base URI and use a URIResolver
to resolve the entities.
> We are using CXF inside Mule and I have no experience working with CXF alone, so I don't
have a way to reproduce this and the wstx-msv-validation module does not have any test that
I can use as an example... but the fix was tested from our side and works :)
> NOTE: the problem was detected using CXF 2.3.1 but the relevant code in trunk is still
the same.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message