better error message for entity class loading order issue