WFLY-829 Add class name to error message, and mark class as invalid rather than throwing exception
Merge pull request #6164 from stuartwdouglas/WFLY-829

WFLY-829 Add class name to error message