Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl2java error: Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.

 
M Paul Baker
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run wsdl2java to generate client stubs for EBay wsdl: http://developer.ebay.com/webservices/latest/ebaySvc.wsdl

I receive error:
[ERROR] http://developer.ebay.com/webservices/latest/ebaySvc.wsdl [20433:6]: Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.
com.sun.istack.SAXParseException2: Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.

at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:82)
at com.sun.tools.xjc.reader.ModelChecker.checkPropertyCollision(ModelChecker.java:108)
...
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] http://developer.ebay.com/webservices/latest/ebaySvc.wsdl [25817:4]: The following location is relevant to the above error
com.sun.istack.SAXParseException2: The following location is relevant to the above error
at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:82)
at com.sun.tools.xjc.reader.ModelChecker.checkPropertyCollision(ModelChecker.java:109)
at com.sun.tools.xjc.reader.ModelChecker.check(ModelChecker.java:99)

I have tried to create a binding file to fix this problem and now get error:
[INFO] --- cxf-codegen-plugin:2.7.3:wsdl2java (generate-ebay-sources) @ EBayWebService ---
[ERROR] S:\Eclipse Workspaces\MNaTStore\EBayWebService\src\main\resources\bindingFile.xml [10:64]: XPath evaluation of "wsdl:definitions/wsdl:types/xs:schema" results in empty target node
com.sun.istack.SAXParseException2: XPath evaluation of "wsdl:definitions/wsdl:types/xs:schema" results in empty target node
at com.sun.tools.xjc.reader.internalizer.Internalizer.reportError(Internalizer.java:598)
at com.sun.tools.xjc.reader.internalizer.Internalizer.reportError(Internalizer.java:592)
at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:279)


My sample maven project consits of two files (see below).
I have not used a jaxb binding file before. I would appreciate any help I can get.
Links to documentation will be great (I have tried to read what I can but I am clearly missing something).
Pointing out my specific problem would be fantastic..
I have seen several binding file examples that reference an xsd file but in this case all of the schema's are embedded in the wsdl (please refer to wsdl link).
I could prune the wsdl... sure but using the binding file is my preferred approach... thanks again!

Envt:
Windows 7
Eclipse Juno x64
Project is maven based
see pom for cxf versions.

Thanks in advance!

pom.xml



bindingFile.xml

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic