Readers,
Please follow the below steps to overcome the exception.
1. Deploy your ejb-jar and war file via an EAR file. I mean, do not deploy your ejb-jar and war file as separate entities. Package them as an EAR file and then deploy it.
2. During injection at the servlet, when you're using the @EJB annotation, just use the mappedNameattribute of it. The mappedName attribute should contain the JNDI name of the EJB.
Thank You,
Akshay Sahu (OCBCD 5)