Rebecca Searls created CXF-6469:
-----------------------------------

             Summary: schemaLocation in xsd import is not rewritten correctly 
in Java 8
                 Key: CXF-6469
                 URL: https://issues.apache.org/jira/browse/CXF-6469
             Project: CXF
          Issue Type: Bug
            Reporter: Rebecca Searls


This issue exists for the current and all previous cxf versions that will be 
run with Java 8.


Java 7 and Java 8 yield different rewritten schemaLocations for an app that 
processes multiple
wsdls.

Using Java 7, their XSD schemaLocations are correctly expanded like this:

<import namespace="http://ossj.org/xml/Common/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEBi/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEBi-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBECore/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBECore-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEResource/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEResource-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEDatatypes/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEDatatypes-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEProduct/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEProduct-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEProductOffering/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEProductOffering-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEService/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEService-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEParty/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-CBEParty-v1-5.xsd"/>


But on Java 8, only the first schemaLocation is expanded, the others are not:

<import namespace="http://ossj.org/xml/Common/v1-5"; 
schemaLocation="http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-Common-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEBi/v1-5"; 
schemaLocation="./OSSJ-Common-CBEBi-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBECore/v1-5"; 
schemaLocation="./OSSJ-Common-CBECore-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEResource/v1-5"; 
schemaLocation="./OSSJ-Common-CBEResource-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEDatatypes/v1-5"; 
schemaLocation="./OSSJ-Common-CBEDatatypes-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEProduct/v1-5"; 
schemaLocation="./OSSJ-Common-CBEProduct-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEProductOffering/v1-5"; 
schemaLocation="./OSSJ-Common-CBEProductOffering-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEService/v1-5"; 
schemaLocation="./OSSJ-Common-CBEService-v1-5.xsd"/>
<import namespace="http://ossj.org/xml/Common-CBEParty/v1-5"; 
schemaLocation="./OSSJ-Common-CBEParty-v1-5.xsd"/>


To reproduce the issue, all you need to do is deploy the attached war file 
(SmpOrderMgrWebServices.war) and point your browser to:
http://localhost:8080/SmpOrderMgrWebServices/JVTOrderManagementSessionSOAP12?xsd=OSSJ-OrderManagement-v1-0.xsd





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to