You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by nmt999 <nm...@yahoo.com> on 2008/07/11 14:59:18 UTC

wsdl2java error

When trying to run wsdl2java on the wsdl file
http://searchmarketing.yahoo.com/developer/docs/V4/wsdl/V4/MasterAccountService.wsdl
using the command wsdl2java -p com.test.masteraccountservice -exsh true
-verbose MasterAccountService.wsdl I'm getting the following error.

Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -p com.test.masteraccountservice -exsh true -verbose
MasterAccountService.wsdl
wsdl2java - Apache CXF 2.1.1


WSDLToJava Error: Thrown by JAXB : Two declarations cause a collision in the
ObjectFactory class.

org.apache.cxf.tools.common.ToolException: Thrown by JAXB : Two declarations
cause a collision in the ObjectFactory class.
        at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.error(JAXBBindErrorListener.java:34)
        at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:280)
        at
com.sun.tools.xjc.util.ErrorReceiverFilter.error(ErrorReceiverFilter.java:77)
        at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:82)
        at
com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:187)
        at
com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:55)
        at
com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)
        at
com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:174)
        at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)
        at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:246)
        at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:228)
        at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:536)
        at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:187)
        at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232)
        at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
Caused by: com.sun.istack.SAXParseException2: Two declarations cause a
collision in the ObjectFactory class.
        ... 14 more


Any help in resolving this issue is appreciated.

Regards
nmt
-- 
View this message in context: http://www.nabble.com/wsdl2java-error-tp18403292p18403292.html
Sent from the cxf-user mailing list archive at Nabble.com.