Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3918

Java first with external XSD does not resolve name spaces properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.3
    • 3.0
    • Tooling
    • None
    • Unknown

    Description

      With CXF 2.4.3 working on Java first web services (attached Eclipse project CXF-WSDLTest.zip) produces the following error when attempting to generate WSDL with referenced XSD files.

      SEVERE: Schema element

      {urn:example.com:fault1}

      appFault references undefined type

      {urn:example.com:fault}

      appFaultDetails for service

      {urn:example.com:role1}

      RoleApiService.

      I want/need to do this, because several services do share the Fault, FaultDetails and error code beans.

      Here are my questions:

      • Why is java2ws not seeing the appFaultDetails (generating the severe message above)?
      • Why is java2ws not generating the import statement for the fault.xsd?
      • Why is the import statement for the role.xsd not using the stated location from the package-info.java file?

      Attachments

        1. CXF-WSDLTest.zip
          15 kB
          Kaj Kandler

        Activity

          People

            dkulp Daniel Kulp
            conficio Kaj Kandler
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: