Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-1021

Issue with xs:import in servicemix-http

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            fribeiro Fernando Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: