I was having problems using wsimport to generate SOAP clients from a wsdl. For a certain WSDL file, I kept getting the error:

[ERROR] A class/interface with the same name “xxxx” is already in use. Use a class customization to resolve this conflict.

I was stumped on this for a bit. StackOverflow saved the day! An answer was posted here that fits my exact problem.

The solution is to use “-B-XautoNameResolution” in your wsimport command. Worked like a charm 🙂  Sweet!