EAP 6.3/CXF - Published WSDL - schemaLocation not updated
pbaker01 Nov 11, 2014 11:04 AMRunning JBoss EAP 6.3, java 7.0_07, Window 7 x64
Style: contract first
I've encountered an issue when deploying a cxf web service on JBoss EAP 6.3 that uses multiple imports within schema files.
When a schema file has more than one import only the first import schemaLocation is being updated with the published location:
The example below shows a published xsd where only the first import has been updated with the published location. The second import is not updated; it still contains the relative location path.
This results with a "File Not Found" exception in the client.
http://localhost:8082/ListingManager?xsd=../../xsd/odlp/ListingManager.xsd
xmlns:ecmn="http://www.aiat.com/odlp/servicecontracts/common/v1/" elementFormDefault="unqualified" jaxb:version="1.0"
targetNamespace=http://www.aiat.com/odlp/servicecontracts/listingmanager/v1/ version="1.0">
<xs:import namespace="http://www.aiat.com/odlp/servicecontracts/listingcommon/v1/"
schemaLocation="ListingCommon.xsd"/> <<<****** This is the error location not updated.
Here is the file contents before publishing.
<xs:schema elementFormDefault="unqualified" version="1.0" targetNamespace="http://www.aiat.com/odlp/servicecontracts/listingmanager/v1/" xmlns:tns= "http://www.aiat.com/odlp/servicecontracts/listingmanager/v1/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:ecmn="http://www.aiat.com/odlp/servicecontracts/common/v1/" xmlns:invcmn="http://www.aiat.com/odlp/servicecontracts/listingcommon/v1/" jaxb:version="1.0"> <xs:import namespace="http://www.aiat.com/odlp/servicecontracts/common/v1/" schemaLocation="../common/Common.xsd"/> <xs:import namespace="http://www.aiat.com/odlp/servicecontracts/listingcommon/v1/" schemaLocation="ListingCommon.xsd"/> <xs:element name="saveListingReq" type="tns:SaveListingReqType" />
pom file associated with service is attached.
Any ideas? Thanks in advance.
Paul
-
WSDL Structure.jpg 106.7 KB
-
pom.xml 10.2 KB