Carachi
unread,Jul 1, 2011, 5:27:25 AM7/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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