 <p>Thank you. I downloaded the <em>jaxb-impl.jar</em> since the the jaxb-api.jar is already included in Java 6 API. Just in case someone else needs a linux script to replace the wrong imports, as mentioned by Wouter. </p> <p>Navigate to your project path and adjust <code>com.abc.generated</code> and <code>abc.xsd</code>.</p> <pre><code>#!/bin/sh xjc -d src/ -p com.abc.generated -Xlocator abc.xsd FILES=$(find src/ -type f -name *.java) for f in $FILES do sed -i 's/\(.*import com.sun.xml.internal.bind.Locatable;.*\)/import com.sun.xml.bind.Locatable;/g' $f sed -i 's/\(.*import com.sun.xml.internal.bind.annotation.XmlLocation;.*\)/import com.sun.xml.bind.annotation.XmlLocation;/g' $f done </code></pre>