cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Bozza (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-6731) wsdl2java returning error "'{A_Type}' is already defined" from version 3.1.3, 2.7.18, 3.0.7
Date Tue, 05 Jan 2016 11:09:39 GMT

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

Davide Bozza updated CXF-6731:
------------------------------
    Attachment: test.zip

Attaching WSDL and XSDs that allow to reproduce the issue

> wsdl2java returning error "'{A_Type}' is already defined" from version 3.1.3, 2.7.18,
3.0.7
> -------------------------------------------------------------------------------------------
>
>                 Key: CXF-6731
>                 URL: https://issues.apache.org/jira/browse/CXF-6731
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.1.3, 2.7.18, 3.0.7, 3.1.4
>            Reporter: Davide Bozza
>         Attachments: test.zip
>
>
> wsdl2java returns the error below in versions 2.7.18, 3.0.7, 3.1.3, 3.1.4. No error is
instead returned in previous versions. 
> My feeling is that the problem is related to the fix performed in https://issues.apache.org/jira/browse/CXF-6580.
> D:\Programs\Frameworks\CXF\apache-cxf-3.1.4\bin> wsdl2java.bat -verbose -d out WSDL.wsdl
> Loading FrontEnd jaxws ...
> Loading DataBinding jaxb ...
> wsdl2java -verbose -d out WSDL.wsdl
> wsdl2java - Apache CXF 3.1.4
> Jan 05, 2016 11:26:55 AM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped
> INFO: Operation {WSDL_NS}Service cannot be unwrapped, input message must reference global
element declaration with same
> localname as operation
> WSDLToJava Error: file:chameleon/Schema1.xsd
>  [8,1]: 'A_Type' is already defined
> file:chameleon/Schema2.xsd [4,2]: (related to above error) the first definition appears
here
> org.apache.cxf.tools.common.ToolException: file:chameleon/Schema1.xsd [8,1]: 'A_Type'
is already defined
> file:chameleon/Schema2.xsd [4,2]: (related to above error) the first definition appears
here
>         at org.apache.cxf.tools.common.ToolErrorListener.throwToolException(ToolErrorListener.java:87)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:166)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:415)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
>         Suppressed: org.apache.cxf.tools.common.ToolException: file:chameleon/Schema1.xsd
[8,1]: 'A_Type' is already defined
>                 ... 7 more
>         Caused by: org.xml.sax.SAXParseException; systemId: file:chameleon/Schema1.xsd;
lineNumber: 8; columnNumber: 1; 'A_Type' is already defined
>                 at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:178)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.checkDoubleDefError(NGCCRuntimeEx.java:150)
>                 at com.sun.xml.xsom.impl.parser.state.Schema.action5(Schema.java:127)
>                 at com.sun.xml.xsom.impl.parser.state.Schema.onChildCompleted(Schema.java:1286)
>                 at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:183)
>                 at com.sun.xml.xsom.impl.parser.state.complexType.text(complexType.java:1712)
>                 at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:236)
>                 at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:312)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContext
Checker.java:199)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140)
>                 at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
>                 at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
>                 at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:269)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
>                 at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128)
>                 at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:171)
>                 at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:160)
>                 at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:534)
>                 at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:269)
>                 at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:95)
>                 at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:460)
>                 at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:726)
>                 at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:270)
>                 at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
>                 ... 5 more
>         Suppressed: org.apache.cxf.tools.common.ToolException: file:chameleon/Schema2.xsd
[4,2]: (related to above error) the first definition appears here
>                 ... 7 more
>         Caused by: org.xml.sax.SAXParseException; systemId: file:chameleon/Schema2.xsd;
lineNumber: 4; columnNumber: 2; (related to above error) the first definition appears here
>                 at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.checkDoubleDefError(NGCCRuntimeEx.java:151)
>                 at com.sun.xml.xsom.impl.parser.state.Schema.action5(Schema.java:127)
>                 at com.sun.xml.xsom.impl.parser.state.Schema.onChildCompleted(Schema.java:1286)
>                 at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:183)
>                 at com.sun.xml.xsom.impl.parser.state.complexType.text(complexType.java:1712)
>                 at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:236)
>                 at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:312)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContext
> Checker.java:199)
>                 at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.j
> ava:140)
>                 at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
>                 at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
>                 at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
>                 at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:269)
>                 at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
>                 at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128)
>                 at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:171)
>                 at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:160)
>                 at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:534)
>                 at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:269)
>                 at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:95)
>                 at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:460)
>                 at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:726)
>                 at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:270)
>                 at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
>                 ... 5 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message