Hi Romain I have tried with my EJB as a @LocalBean still getting NullPointerException.
*@LocalBean @Stateless public class Test* I add @Stateless on the TestExceptionHandler when that didn't work I changed it to @RequestScoped but still same error. *@Provider @Stateless public class TestExceptionHandler implements ExceptionMapper<Throwable>* and *@Provider @RequestScoped public class TestExceptionHandler implements ExceptionMapper<Throwable>* I also tried to inject the Test EJB using: * @EJB Test test;* and * @Inject Test test;* Can you maybe post your working ScratchPad project? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Injecting-EJB-into-Rest-Exception-Handler-tp4676781p4676807.html Sent from the TomEE Dev mailing list archive at Nabble.com.