Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1798

Cannot find local schema with relative urls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-2.0.2
    • None
    • None
    • None

      I deploy an ear file in JBoss5 that contains a war and a jar fil. The jar file contains a SLSB and the war file contains the web service (implemented as a Provider<SOAPMessage>). The war file has the following file structure in the the WEB-INF/wsdl folder:

      WEB-INF/wsdl
      my-service.wsdl
      /imported
      /my-service
      /1.0-SNAPSHOT
      my-service.xsd
      /common
      /1.0-SNAPSHOT
      common.xsd

      the wsdl file has a schema import like
      <xsd:import schemaLocation="imported/my-service/1.0-SNAPSHOT/my-service.xsd" .../>

      the my service.xsd imports the common.xsd file with the following import statement
      <xsd:import schemaLocation="../../common/1.0-SNAPSHOT/common.xsd" .../>

      Having this configuration will put JBoss into trouble. The error message sent is telling med that parent paths are not allowed, and pointing out to use getParent() instead. So I setting the schemaLocation attribute to getParent()/getParent()/.... will point out another path, but it is completely wrong.

      PS...
      I hope I got all "../":s right. Anyway, I have validated my paths so they are correct. DS.

              tdiesler@redhat.com Thomas Diesler
              oskar.carlstedt Oskar Carlstedt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: