aspose file tools*
The moose likes Web Services and the fly likes wsdl2java error: Property to resolve this conflict." title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java error: Property "Any" is already defined. Use <jaxb:property> to resolve this conflict." Watch "wsdl2java error: Property "Any" is already defined. Use <jaxb:property> to resolve this conflict." New topic
Author

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

M Paul Baker
Greenhorn

Joined: Mar 06, 2013
Posts: 3
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsdl2java error: Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.