On Thu July 23 2009 5:13:36 pm [email protected] wrote: > Daniel Kulp wrote: > > Definite "propogated"? Unchecked exceptions are logged to the > > java.util.Logging stuff. But they aren't propagated to the web > > container. > > I want to throw exceptions from my WebService implementation that the > client can know about but the Web Container will not even know (of course > that means no logging in the Web Container logs) Is there a way to throw > exception in JAX-WS (or CXF) that do not get logged and just the client > know about them?
I think the only way is to configure the java.util.logging Logger for org.apache.cxf.phase.PhaseInterceptorChain to not log anything (or just log errors or something). Dan > > Sergey Beryozkin: > > WebApplicationExceptions are not sent to the container due to the fact > > that CXF JAX-RS includes the default WebApplicationException > > ExceptionMapper. Any custom exceptions for which no ExceptionMappers can > > be found will actually escape to the container wrapped in a > > ServletException as per the JAX-RS spec - it can be disabled though > > How may I do the same thing in JAX-WS? > > > > Ahora también puedes acceder a tu correo Terra desde el móvil. > Infórmate pinchando aquí. -- Daniel Kulp [email protected] http://www.dankulp.com/blog
