I have wsdl that was generated by .NET, which I am trying to use in a Java application. For this I am trying to use the CXF tool Wsdl2Java. The problem is that when the tool starts, it throws a jaxb exception:
Thrown by JAXB: Two declarations cause a collision in the ObjectFactory class.
I understand that I probably need to create my own binding file to rename the object during the build, but I don't know where to start. How to find out which objects in wsdl are causing problems?
(It seems to be nice if the exception actually indicated which elements cause a name conflict)
wsdl2java jaxb cxf
Jamesp
source share