Jetty 404 not found with more connections

79 views
Skip to first unread message

Carachi

unread,
Jul 1, 2011, 5:27:25 AM7/1/11
to jetty-rails
Hello everybody,
I am new in Jetty and I try to build a handler, so I do this:

public static void main(String[] args) throws Exception
{
Server server = new Server(8080);
server.setHandler(new TaskHandler());

server.start();
server.join();
}

TaskHandler is a my class that reply with an xml.
The server works well if I have few connections (something like 10),
but if I have more connections (something like 100), Jetty sometimes
(about 13%) response with:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/
>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>



Why?? How can I solve this problem??
How many connection Jetty supported?

Thank you
Reply all
Reply to author
Forward
0 new messages