dev@grizzly.java.net

Re: servletadapter.start hides exceptions

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 28 Jan 2009 14:43:43 -0500

Salut,

gustav trede wrote:
> hell,
>
> servletadapter.start() hides exceptions.
>
> If the servlet.init or so fails , httpservice.registerServlet should be
> able to detect it and abort the servlet registration ,
> leaving the alias free to use instead of locked by an invalid servlet ?

I agree we need to fix that. I would change two things:

(1) Throw a RuntmeException instead of just logging the exception.
(2) Make sure the GrizzlyWebServer/GrizzlyAdapterChain catch those
exception and logs them and still be able to start other Adapter added.

Thanks

-- Jeanfrancois


>
> Either throwing the Throwable or returning a boolean status flag should
> work.
>
> whats your opinion ?
>
> --
> regards
> gustav trede
>
>