?wsdl query does not work in combination with schemas with same file name in different paths
Environment
- Red Hat JBoss Enterprise Application Platform 6.3.x
Issue
This issue can be reduced down to something like this:
- WSDL references two different schemas, e.g. schema1.xsd and schema2.xsd
- Both schemas are in different folders, e.g. folder1 and folder2
- Each schema references another schema with the same name, e.g. "mySchema.xsd"
- There are two version of mySchema.xsd, one in folder1 and one in folder2
The problem with the scenario above is that one either schema1.xsd or schema2.xsd will have the wrong schemaLocation for mySchema.xsd because CXF uses the same schemaLocation for both versions of mySchema.xsd.
When the schemaLocation is populated, it doesn't resolve to the full URL causing the whole WSDL to fail because the schema's cannot be looked up.
- Content from issues.apache.org is not included.Content from issues.apache.org is not included.https://issues.apache.org/jira/browse/CXF-4910
- Content from issues.apache.org is not included.Content from issues.apache.org is not included.https://issues.apache.org/jira/browse/CXF-6234
Resolution
Apply JBoss EAP 6.4 Cumulative Patch (CP) 6 or later
These issues are resolved in JBoss EAP 6.3.0 for Content from issues.apache.org is not included.CXF-4910
Content from issues.apache.org is not included.CXF-6234 is resolved in JBoss EAP 6.4 Cumulative Patch (CP) 6 or later
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.