Asynchronous Processing in JBoss 6 ("Comet")

edit: Retagged as tomcat/jboss, since this could be a question about the Tomcat embedded inside JBoss 6, rather than JBoss itself

I have an extremely simple servlet, which works on Glassfish v3. It uses Servlet 3.0 Asynchronous Processing. Here's a simplified version (which doesn't do much):

public class SimpleServlet extends HttpServlet {

    protected void doGet(HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {

        final AsyncContext ac = request.startAsync();

On JBoss 6.0.0 Milestone 2, I get the following Exception:

java.lang.IllegalStateException: The servlet or filters that are being used
          by this request do not support async operation
    at org.apache.catalina.connector.Request.startAsync(
    at org.apache.catalina.connector.Request.startAsync(
    at org.apache.catalina.connector.RequestFacade.startAsync(
    at playcomet.SimpleServlet.doGet(
    at javax.servlet.http.HttpServlet.service(

Do I have to do anything special to enable Asynchronous Processing in JBoss 6? Or do I need an additional deployment descriptor? ...


If you have web.xml deployed it with.. Just take that out. structure should be


  • WEB-INF/
  • WEB-INF/classes/*.class

  • WEB-INF/lib/*.jar

Your web.xml is overriding asyncSupported=true annotation and hence the error

Need Your Help

Threading in Spidermonkey

mozilla nsthread xpcom spidermonkey javascript-engine

I am trying to enable a threaded debug dump in SpiderMonkey, by

Python 2.7 web-scraping - list index out of range

python python-2.7 web-scraping beautifulsoup

New to python and web-scraping. I'm trying to scrape for some analysis and only gotten so far. With the below code I'm able to scrape only 3