The only solution is to create a binding file to map the
masterAccountId to use a different name


On 7/14/08, nmt999 <[EMAIL PROTECTED]> wrote:
>
>  i'm not an expert with wsdl's. this is something that is defined by yahoo. is
>  there a way i can resolve this issue to generate using wsdl2java.
>
>
>
>  Daniel LaPrade wrote:
>  >
>  > the masterAccountId is defined but never used.... instead it gets
>  > redefined with the same name in multiple places...
>  >
>  >
>  > On 7/14/08, nmt999 <[EMAIL PROTECTED]> wrote:
>  >>
>  >>  I have tried it without the -p com.test.masteraccountservice option,
>  >> however
>  >>  it still throw the same exception
>  >>
>  >>
>  >>
>  >>  Daniel LaPrade wrote:
>  >>  >
>  >>  > Try removing the package name: -p com.test.masteraccountservice
>  >>  >
>  >>  >
>  >>  > On 7/14/08, nmt999 <[EMAIL PROTECTED]> wrote:
>  >>  >>
>  >>  >>  When trying to run wsdl2java on the wsdl file
>  >>  >>
>  >>  >>
>  >> 
> https://sandbox.marketing.ews.yahooapis.com/services/V4/MasterAccountService?wsdl
>  >>  >>  using the command wsdl2java -p com.test.masteraccountservice -exsh
>  >> true
>  >>  >>  -verbose MasterAccountService.wsdl I'm getting the error message
>  >> shown
>  >>  >>  below. Is this a bug with the cxf's wsdl2java
>  >>  >>
>  >>  >>  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
>  >>  >>
>  >>  >>
>  >>  >>  --
>  >>  >>  View this message in context:
>  >>  >>
>  >> 
> http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18443765.html
>  >>  >>  Sent from the cxf-user mailing list archive at Nabble.com.
>  >>  >>
>  >>  >>
>  >>  >
>  >>  >
>  >>  > --
>  >>  > ------------
>  >>  > Success is the ability to go from one failure to another with no loss
>  >>  > of enthusiasm.  - Winston Churchill
>  >>  >
>  >>  >
>  >>
>  >>
>  >> --
>  >>  View this message in context:
>  >> 
> http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18444312.html
>  >>
>  >> Sent from the cxf-user mailing list archive at Nabble.com.
>  >>
>  >>
>  >
>  >
>  > --
>  > ------------
>  > Success is the ability to go from one failure to another with no loss
>  > of enthusiasm.  - Winston Churchill
>  >
>  >
>
>
> --
>  View this message in context: 
> http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18445287.html
>
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>


-- 
------------
Success is the ability to go from one failure to another with no loss
of enthusiasm.  - Winston Churchill

Reply via email to