title: JBoss not responding to valid URLs
body: <p>I encountered strange behavior of an JBoss AS 7 on linux server. When I deploy war with my application, the server doesn't respond for valid HTTP requests for this app. When I try to GET a valid URL, I can see in logs, that backend functions (e.g. DAO methods) are called, debug logs shows that subsequent tags in my JSF are rendered, I even can see a message <code>Rendering View index.xml</code>, but the response never reaches the client. 
  When I use a non-existent URL (e.g. <code>index.asd</code>) response is 404 and when I use a wrong page name (e.g. <code>inswxasd.xhtml</code>) the response is 500. Thus it fails only with valid requests. </p>
  
  <p>I tried to connect both remotely (using firefox) and locally (with <code>wget</code>) and I reproduced the problem. The strange thing is that I deploy the war that I already used and then it worked.</p>
  
  <p><strong>EDIT 1:</strong> </p>
  
  <p>I've just noticed that when I send a request to, the server process takes 200% of CPU. Additionally it happens for only one application with stack: Hibernate, Spring, JSF 2.0, Primefaces. </p>
  
  <p><strong>EDIT 2:</strong> </p>
  
  <p>Here is <a href="http://pastie.org/private/5ibhlq0uyycbwhnrivqqaq" rel="nofollow">pastie with jstack output</a> (<code>jstack -l -F &lt;PID&gt;</code>). All threads are blocked.</p>
  
  <p>Additionally I noticed (using <code>top</code> and dumping stack of the JBoss process) that the problem is most probably caused by a thread called <code>http--0.0.0.0-8080-1</code>. Any ideas?</p>