You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "ROBERTOJIMENOCA@terra.es" <RO...@terra.es> on 2009/07/23 17:18:32 UTC

JAX-WS Client Exceptions (that do not propagate to the Web Container)

What is the correct way in JAX-WS to throw exceptions to the Client (or caller) and not propagate to my Web Container?
(In JAX-RS javax.ws.rs.WebApplicationException does the equivalent of what I want)


Ahora tambi�n puedes acceder a tu correo Terra desde el m�vil.
Inf�rmate pinchando aqu�.



Re: JAX-WS Client Exceptions (that do not propagate to the Web Container)

Posted by Daniel Kulp <dk...@apache.org>.
On Thu July 23 2009 11:40:20 am Andrew Clegg wrote:
> Doesn't *any* exception thrown during invocation of a web method get
> sent to the client without reaching the container?
>
> This is my understanding anyway.

Yea.  That would be my understanding as well.   Any exceptions thrown are 
mapped to faults and sent to the client.

Dan


>
> Andrew.
>
> 2009/7/23 ROBERTOJIMENOCA@terra.es <RO...@terra.es>:
> > What is the correct way in JAX-WS to throw exceptions to the Client (or
> > caller) and not propagate to my Web Container? (In JAX-RS
> > javax.ws.rs.WebApplicationException does the equivalent of what I want)
> >
> >
> > Ahora tambi�n puedes acceder a tu correo Terra desde el m�vil.
> > Inf�rmate pinchando aqu�.

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: JAX-WS Client Exceptions (that do not propagate to the Web Container)

Posted by Andrew Clegg <an...@nervechannel.com>.
Doesn't *any* exception thrown during invocation of a web method get
sent to the client without reaching the container?

This is my understanding anyway.

Andrew.

2009/7/23 ROBERTOJIMENOCA@terra.es <RO...@terra.es>:
> What is the correct way in JAX-WS to throw exceptions to the Client (or caller) and not propagate to my Web Container?
> (In JAX-RS javax.ws.rs.WebApplicationException does the equivalent of what I want)
>
>
> Ahora tambi�n puedes acceder a tu correo Terra desde el m�vil.
> Inf�rmate pinchando aqu�.
>
>
>



-- 
:: http://biotext.org.uk/ ::

Re: JAX-WS Client Exceptions (that do not propagate to the Web Container)

Posted by Sergey Beryozkin <se...@iona.com>.
Just one comment :

> In JAX-RS javax.ws.rs.WebApplicationException does the equivalent of what
> I want
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 

cheers, Sergey


ROBERTOJIMENOCA@terra.es wrote:
> 
> What is the correct way in JAX-WS to throw exceptions to the Client (or
> caller) and not propagate to my Web Container?
> (In JAX-RS javax.ws.rs.WebApplicationException does the equivalent of what
> I want)
> 
> 
> Ahora tambi�n puedes acceder a tu correo Terra desde el m�vil.
> Inf�rmate pinchando aqu�.
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/JAX-WS-Client-Exceptions-%28that-do-not-propagate-to-the-Web-Container%29-tp24628435p24633333.html
Sent from the cxf-user mailing list archive at Nabble.com.