When you reference some nonexisting class in beans.xml, following error message is displayed:
There is no class with the specified name [JSR-299 ยง8.2]
I think that's not much helpful.