tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: WARNING: No operation matching request path on a full jax-rs app
Date Sun, 05 Jun 2016 19:20:32 GMT
Did you try an ExceptionMapper? It could handle 404 and delegate others.
Le 5 juin 2016 21:15, "Kirys" <kirys@neoteroi.org> 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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message