Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development