Skip to content

Instantly share code, notes, and snippets.

View jorgeitenjr's full-sized avatar

Jorge Iten Jr jorgeitenjr

View GitHub Profile
@barbietunnie
barbietunnie / jax-ws-import-fix.md
Last active May 5, 2021 10:50
JAX-WS import error for "A class/interface with the same name 'x.y.z.class' is already in use. Use a class customization to resolve this conflict."

A class/interface with the same name "x.y.z.class" is already in use. Use a class customization to resolve this conflict.

The issue is usually due to case-sensitivity error, where the same name for element and attribute issue (thru inheritance sometimes).

For case-sensitivity issues you can usexjc argument -XautoNameResolution, maven version is <args><arg>-B-XautoNameResolution</arg></args>.

When using external tools for code generation, specify the argument:

xjc argument -XautoNameResolution