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

Error resolving inline schema references

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.3, 2.7
    • 2.6.4, 2.7.1
    • Tooling
    • None
    • Windows 7, JDK 1.6

    • Unknown

    Description

      This issue is similar to CXF-4487.

      There were no problems or warnings generating the sources for the attached project with 2.5.6.

      Warnings appear using 2.6.2:

      [WARNING] C:\dev\cxf-4487\src\main\resources\wsdl\MyService.wsdl [10:13]: src-resolve.4.2: Error resolving component 'tld:PriceDocument'. It was detected that 'tld:PriceDocument' is in namespace 'http://cxf4487.dekies.de/david/tld', but components from this namespace are not referenceable from schema document 'file:/C:/dev/cxf-4487/src/main/resources/wsdl/MyService.wsdl#types1'. If this is the incorrect namespace, perhaps the prefix of 'tld:PriceDocument' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/dev/cxf-4487/src/main/resources/wsdl/MyService.wsdl#types1'.
      org.xml.sax.SAXParseException: src-resolve.4.2: Error resolving component 'tld:PriceDocument'. It was detected that 'tld:PriceDocument' is in namespace 'http://cxf4487.dekies.de/david/tld', but components from this namespace are not referenceable from schema document 'file:/C:/dev/cxf-4487/src/main/resources/wsdl/MyService.wsdl#types1'. If
      this is the incorrect namespace, perhaps the prefix of 'tld:PriceDocument' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/dev/cxf-4487/src/main/resources/wsdl/MyService.wsdl#types1'.
      

      Starting with 2.6.3/ 2.7.0 the generation breaks the build:

      [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java (wsdl-MyService.wsdl) on project generated-server: Execution wsdl-MyService.wsdl of goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java failed: Schema Error : src-resolve: Cannot resolve the name 'tld:PriceDocument' to a(n) 'element declaration' component. -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java (wsdl-MyService.wsdl) on project generated-server: Execution wsdl-MyService.wsdl of goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java failed: Schema Error : src-resolve: Cannot resolve the name 'tld:PriceDocument' to a(n) 'element declaration' component.
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkulp Daniel Kulp
            deki Dennis Kieselhorst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment