Perform EJB Injection inside AbstractController instead of individual entity Controller (here MyTestController). Will fail to deploy on Apache TomEE.