You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergii Pavlenko (JIRA)" <ji...@apache.org> on 2013/01/18 11:10:12 UTC

[jira] [Updated] (CXF-4764) WSDLToJava Error: ...is already defined

     [ https://issues.apache.org/jira/browse/CXF-4764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergii Pavlenko updated CXF-4764:
---------------------------------

    Attachment: wsdl_test.zip

Project snippet
                
> WSDLToJava Error: ...is already defined
> ---------------------------------------
>
>                 Key: CXF-4764
>                 URL: https://issues.apache.org/jira/browse/CXF-4764
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.2
>         Environment: Windows 7 x64, Eclipse, Ant, Ivy, Apache Tomcat 7.0.22
>            Reporter: Sergii Pavlenko
>         Attachments: wsdl_test.zip
>
>
> I've got wsdl with three xsd-s: 
> * tpml-trade_2_0.xsd (imports two others)
> * fpml-4-6-7-rec-1/www.fpml.org/spec/2009/fpml-4-6-7-rec-1/fpml1.xsd 
> * fpml-4-6-7-rec-1/www.fpml.org/spec/2009/fpml-4-6-7-rec-1/fpml2.xsd (includes fpml1.xsd)
> I run ant wsdl2java against above xsd-s and get generated java classes without errors: 
> {noformat}
> wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api D:\Projects\workspace\wsdl_test\src\schema/calcservice.wsdl
> {noformat}
> Then I deploy webservice on server, try to generate java classes and receive errors:
> {noformat}
>  [java] wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8399/service/services/gate?wsdl
>      [java] wsdl2java - Apache CXF 2.7.2 
>      [java] WSDLToJava Error: http://localhost:8080/calculationservice/services/gate?xsd=fpml1.xsd [0,0]: 'Entry1' is already defined 
>      [java] http://localhost:8080/calculationservice/services/gate?xsd=fpml-4-6-7-rec-1/www.fpml.org/spec/2009/fpml-4-6-7-rec-1/fpml1.xsd [0,0]: (related to above error) the first definition appears here
>      [java] org.apache.cxf.tools.common.ToolException: http://localhost:8080/calculationservice/services/gate?xsd=fpml1.xsd [0,0]: 'Entry1' is already defined
>      [java] http://localhost:8080/calculationservice/services/gate?xsd=fpml-4-6-7-rec-1/www.fpml.org/spec/2009/fpml-4-6-7-rec-1/fpml1.xsd [0,0]: (related to above error) the first definition appears here 
> {noformat}
> Seems that CXF is still unable to resolve same xsd from different import/include. 
> I used JAXB 2.2.2, CXF 2.7.2 and Apache Tomcat 7.0.22.

--
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