WFLY-829 Add class name to error message, and mark class as invalid rather than throwing exception