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

cxf-codegen-plugin: Error resolving component warnings for imported types

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.3
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      Windows 7 x64

    • Estimated Complexity:
      Unknown

      Description

      As of CXF 2.6.2 (not sure about 2.6.1)), I get warnings for several types that have been imported from an XSD.

      For example:
      WARNING: C:\cxf-plugin-issue\src\main\resources\Private\Acquittal\NisseAcquittal_V1.wsdl [23,7]: src-resolve.4.2: Error resolving component 'meta:ApplHeaderStruct'. It was detected that 'meta:ApplHeaderStruct' is in namespace 'http://www.rsvz-inasti.fgov.be/PrivateWS/schema/MetaInfo/V1', but components from this namespace are not referenceable from schema document 'file:/C:/cxf-plugin-issue/src/main/resources/Private/Acquittal/NisseAcquittal_V1.wsdl#types1'. If this is the incorrect namespace, perhaps the prefix of 'meta:ApplHeaderStruct' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/cxf-plugin-issue/src/main/resources/Private/Acquittal/NisseAcquittal_V1.wsdl#types1'.

      I get none of these warning when using CXF 2.5.4, and the WSDL and XSD are all valid.

      I'll attach a repro for this issue, and a log file (taken with level FINE).
      Just search for "src-resolve.4.2".

      Just use "mvn clean install" to reproduce the issue.

        Attachments

        1. cxf-4487.zip
          38 kB
          Gert Driesen
        2. cxf-codegen-plugin.log
          247 kB
          Gert Driesen
        3. example.zip
          2 kB
          Chris Mathews

          Issue Links

            Activity

              People

              • Assignee:
                dkulp Daniel Kulp
                Reporter:
                gertdriesen Gert Driesen
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: