CXF
  1. CXF
  2. CXF-3918

Java first with external XSD does not resolve name spaces properly

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Estimated Complexity:
      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?

        Activity

        Hide
        Kaj Kandler added a comment -

        This Eclipse test app shows the issue.

        Show
        Kaj Kandler added a comment - This Eclipse test app shows the issue.
        Hide
        Kaj Kandler added a comment -

        The cause for this issue might be related to CXF-3919

        Show
        Kaj Kandler added a comment - The cause for this issue might be related to CXF-3919

          People

          • Assignee:
            Unassigned
            Reporter:
            Kaj Kandler
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development