Here is the test https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=server/openejb-cxf-rs/src/test/java/org/apache/openejb/server/cxf/rs/EJBProviderTest.java;h=91bd32364d595439cb9b2c3479e9f31c34998783;hb=a8d71ea391552e94348b5d25d90e9a58388a3ca3
We have a CDIProviderTest next to it as well Le 17 nov. 2015 03:06, "Rentius" <rentius2407...@gmail.com> a écrit : > 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. >