Did you try an ExceptionMapper? It could handle 404 and delegate others.
Le 5 juin 2016 21:15, "Kirys" <[email protected]> a écrit :
> Hi again,
>
> I'm building a rest service that is a bunch of stateless beans with
> @Path("/whatever"), and as suggested here some time ago a
>
> @ApplicationPath("/")
> public class WebApp extends Application {
>
> }
>
> My issue is that if i requested a path that have no handler path instead
> of a 404 an empty page is produced (tomee plume 1.7.2).
>
> and in the log i see something like
>
>
> WARNING: No operation matching request path "/gascedev/notexists" is
> found, Relative Path: /notexists, HTTP Method: GET, ContentType: */*,
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Please enable FINE/TRACE log level for more details.
>
>
> how can i handle those a generate a 404 page?
>
> Thank You
>
> K.
>
>