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

WSDLFilePublisher throws FileNotFoundException when schema files are not in wsdl directory

XMLWordPrintable

    • Hide

      put schema dirs/files to wsdl directory.

      Show
      put schema dirs/files to wsdl directory.

      I have following (simplified) structure:
      WEB-INF/wsdl/test.wsdl
      WEB-INF/schema/test/test.xsd
      WEB-INF/schema/ebRS/rs.xsd

      In test.wsdl is test.xsd imported (../schema/test/test.xsd)
      In test.xsd is rs.xsd imported (../ebRS/rs.xsd)

      Deployment failed with a FileNotFound Exception ( ..../wsdl/schema/ebRS/rs.xsd vs. i would expect: .../schema/ebRS/rs.xsd)
      I tracked the problem down to WSDLFilePublisher.publishSchemaImports:
      the resourcePath contains two slashes ( WEB-INF/wsdl//..schema/test/../ebRS/rs.xsd) before getting the resourceURL.
      I think this caused the getMetaDataFileURL method to treat the '..' part after wsdl wrong. (when i correct the resourcePath value it works fine)

      This failure occurs only if the schema files are not in wsdl directory branch.

              ropalka Richard Opalka
              franz.willer Franz Willer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: