Fix jersey IllegalAccessError.