Re: [jetty-user] 404 Not Found for any request while STARTING

Matt Doran <[email protected]>
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
  On 3/09/2010 10:08 PM, Dmitry Lisay wrote:
> Hello.
>
> If there's a request during startup phase Jetty always answers with 
> 404 Not Found regardless of handlers set. The server handles 
> connections whlie it's still STARTING (in 
> HttpConnection.handleRequest() it calls isRunning() ) but later in 
> HandlerWrapper.handle() there's a check for isStarted() which leads to 
> ignoring any defined handlers and resulsts in default 404. There's no 
> way to intercept that 404 error response.
>
> Is it an indended behaviour or a bug?
>
> Jetty version: 6.1.25

I've also noticed this behavior.    It would be nice if no connections 
were accepted/processed until the server was ready to accept them (e.g. 
all the handlers are up and running).

If anyone know how to achieve this I'd be interested to know how.

Thanks,
Matt

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.