[ 
https://issues.apache.org/jira/browse/CXF-4598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483269#comment-13483269
 ] 

Daniel Kulp commented on CXF-4598:
----------------------------------

Seems to be an issue with the -validate flag.   Remove that and the build will 
pass.    It's still a bug, but that's at least a workaround.

                
> Error resolving inline schema references 
> -----------------------------------------
>
>                 Key: CXF-4598
>                 URL: https://issues.apache.org/jira/browse/CXF-4598
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.6.3, 2.7.0
>         Environment: Windows 7, JDK 1.6
>            Reporter: Dennis Kieselhorst
>         Attachments: cxf-4598-sampleproject.zip
>
>
> 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:
> {code}
> [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'.
> {code}
> Starting with 2.6.3/ 2.7.0 the generation breaks the build:
> {code}
> [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.
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to