Fix @Resource InjectionPoint registration and improve error message
Merge pull request #6077 from bafco/errorMessage

Fix @Resource InjectionPoint registration and improve error message