Details
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
Attachments
Issue Links
- relates to
-
CXF-4487 cxf-codegen-plugin: Error resolving component warnings for imported types
- Closed