Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
4.4.0
-
None
-
None
-
None
-
All ServiceMix environments.
Description
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.