Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2479

Problems with bottom-up J2W code when cross-NS class-to-class reference exists; issue with systemID used by XMLSchema code for corresponding xsd import

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Java-SCA-1.3
    • Java-SCA-1.3
    • SCA Java Runtime
    • None

    Description

      If I go bottom-up from Java, with class my.pkg1.MyClass dependent on my.pkg2.OtherClass, the Interface2WSDLGenerator will produce XMLSchema objects in such a way that the schemaLocation on the import doesn't work.

      As an immediate cause, I can see the code in JAXBTypeHelper.DOMResolverImpl doing:

      public Result createOutput(String ns, String file) throws IOException {
      DOMResult result = new DOMResult();
      result.setSystemId(ns + file);

      This is what produces the XmlSchemaException with message "The system cannot find the file specified."

      I'll attach a patch to allow for recreate.

      Attachments

        1. 2479.test.diff
          2 kB
          Scott Kurz

        Activity

          People

            scnash Simon Nash
            scottkurz Scott Kurz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment