AbstractJAXBContextFinder uses Class.getPackage(). The javadocs for this method state that it can return null (its up the classloader), so you can't rely on it to look up the class package. The correct solution is to use string manipulation on the class name instead, such as:
String packageName;
int packageSeparator = name.lastIndexOf('.');
if (packageSeparator != -1)
{
packageName = type.getName().substring(0, packageSeparator);
}
else
{
packageName = type.getName();
}