cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Ferreira Castro (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5623) Failed to invoke WSDLToJava - is already defined
Date Tue, 18 Mar 2014 19:16:43 GMT
Daniel Ferreira Castro created CXF-5623:
-------------------------------------------

             Summary: Failed to invoke WSDLToJava - is already defined
                 Key: CXF-5623
                 URL: https://issues.apache.org/jira/browse/CXF-5623
             Project: CXF
          Issue Type: Sub-task
          Components: Build system
    Affects Versions: 2.4
            Reporter: Daniel Ferreira Castro


C:\Users\didemz49\jboss-as-7.1.1.Final\bin>wsconsume --source=C:\Users\didemz49\Desktop\WebServicesMobileProject\WebServicesMobileProject\src
--verbose -k C:\Users\didemz49\Desktop\WebServicesMobileProject\WebS
ervicesMobile\wsdl\corretor.wsdl
Could not find log4j.xml configuration, logging to console.

Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -compile -exsh false -d C:\Users\didemz49\Desktop\WebServicesMobileProject\WebServicesMobileProject\src
-verbose -classdir C:\Users\didemz49\jboss-as-7.1.1.Final\bin\output -allowElementReferences
fil
e:/C:/Users/didemz49/Desktop/WebServicesMobileProject/WebServicesMobile/wsdl/corretor.wsdl
wsdl2java - Apache CXF 2.4.6

Failed to invoke WSDLToJava
org.apache.cxf.tools.common.ToolException: Thrown by JAXB:
Thrown by JAXB:
'mensagemErro' is already defined
 at line 6 column 62 of schema file:/C:/Users/didemz49/Desktop/WebServicesMobileProject/WebServicesMobile/xsd/erro.xsd

Thrown by JAXB: (related to above error) the first definition appears here

'tMensagemErro' is already defined
 at line 29 column 42 of schema file:/C:/Users/didemz49/Desktop/WebServicesMobileProject/WebServicesMobile/xsd/erro.xsd

Thrown by JAXB: (related to above error) the first definition appears here

'tListaMensagens' is already defined
 at line 42 column 38 of schema file:/C:/Users/didemz49/Desktop/WebServicesMobileProject/WebServicesMobile/xsd/erro.xsd

Thrown by JAXB: (related to above error) the first definition appears here

'tListaLinks' is already defined
 at line 52 column 14 of schema file:/C:/Users/didemz49/Desktop/WebServicesMobileProject/WebServicesMobile/xsd/erro.xsd

Thrown by JAXB: (related to above error) the first definition appears here

        at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.throwError(JAXBBindErrorListener.java:40)
        at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:413)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:591)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:243)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)
        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.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:250)
        at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:279)
        at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:104)
        at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.jboss.modules.Module.run(Module.java:260)
        at org.jboss.modules.Main.main(Main.java:291)
Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/didemz49/Desktop/WebServicesMobileProject/WebServicesMobile/xsd/erro.xsd;
lineNumber: 6; columnNumber: 62; 'mensagemErro' is already defined
        at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.error(JAXBBindErrorListener.java:61)
        at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:316)
        at com.sun.tools.xjc.util.ErrorReceiverFilter.error(ErrorReceiverFilter.java:82)
        at com.sun.xml.xsom.impl.parser.ParserContext$2.error(ParserContext.java:206)
        at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:184)
        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.action7(Schema.java:137)
        at com.sun.xml.xsom.impl.parser.state.Schema.onChildCompleted(Schema.java:1244)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:183)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:880)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:813)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:887)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:1052)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:1021)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:1009)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:991)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:862)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:1033)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:874)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:921)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:850)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:933)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:184)
        at com.sun.xml.xsom.impl.parser.state.foreignAttributes.text(foreignAttributes.java:163)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromText(NGCCHandler.java:137)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:971)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromText(NGCCHandler.java:137)
        at com.sun.xml.xsom.impl.parser.state.Schema.text(Schema.java:1067)
        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(CustomizationContextChecker.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.visit(DOMScanner.java:281)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
        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:267)
        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:168)
        at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:157)
        at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518)
        at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:268)
        at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:94)
        at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:391)
        ... 16 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message