cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergii Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-4764) WSDLToJava Error: ...is already defined
Date Fri, 18 Jan 2013 10:16:12 GMT

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

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

    Description: 
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}
wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8080/calculationservice/services/gate?wsdl
{noformat}
{noformat}
 [java] wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8080/calculationservice/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.



  was:
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}
wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8080/calculationservice/services/gate?wsdl
{noformat}
{noformat}
 [java] wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8080/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.



    
> 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}
> wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8080/calculationservice/services/gate?wsdl
> {noformat}
> {noformat}
>  [java] wsdl2java -verbose -d D:\Projects\workspace\wsdl_test\src\gen-api http://localhost:8080/calculationservice/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

Mime
View raw message