Issue with xs:import in servicemix-http
---------------------------------------
Key: SMX4-1021
URL: https://issues.apache.org/jira/browse/SMX4-1021
Project: ServiceMix 4
Issue Type: Bug
Affects Versions: 4.4.0
Environment: All ServiceMix environments.
Reporter: Fernando Ribeiro
Priority: Blocker
When using an external URI in a xs:import declaration, I get an exception:
*WSDL*
<wsdl:definitions targetNamespace="http://sample">
<wsdl:types>
<xs:schema targetNamespace="http://sample">
<xs:import namespace="http://sample/common"
schemaLocation="http://host/common.xsd" />
</xs:schema>
</wsdl:types>
</wsdl:definitions>
*Message*
Caused by: java.io.FileNotFoundException: class path resource
[wsdl/http://host/common.xsd] cannot be resolved to URL because it does not
exist
at
org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:179)
at
org.springframework.core.io.AbstractResource.getURI(AbstractResource.java:93)
at
org.apache.servicemix.http.endpoints.SpringWSDLLocator.getLatestImportURI(SpringWSDLLocator.java:68)
It shouldn't expected the imported schema to always be a classpath resource,
right?
As a workaround, I'm copying all schemas to every servicemix-http bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira