It is a tomee 7 feature I think

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-06-06 21:57 GMT+02:00 Kirys <[email protected]>:

> Got only null
> On Jun 6, 2016 9:52 PM, "Romain Manni-Bucau" <[email protected]>
> wrote:
>
> > 2016-06-06 21:44 GMT+02:00 Kirys <[email protected]>:
> >
> > > On 06/06/2016 12:09, Kirys wrote:
> > >
> > >>
> > >> Good point, but it is just a little counterintuitive, actually there
> is
> > >> no "processor" designed for it.
> > >> I'll try the code you provided and also catch all function approach.
> > >>
> > >>
> > >
> > > Ok the exception mapper was working but that code doesn't fire the
> > > standard error pages (and of course ignore also those defined into the
> > > web.xml).
> > > I've also noticed that if the rest "controller" raises an exception the
> > > standard tomcat pages are shown.
> > > My current solution is to generate the 404 page inside the mapper code
> > > (that cannot accept injections though)
> > >
> >
> > If that's a CDI bean it should work otherwise you get a plain
> newInstance()
> > or Service configured provider.
> >
> >
> > > I've updated the sample project on my repo as a reference.
> > > Thank You again for your help
> > > K.
> > >
> >
>

Reply via email to