Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1423

Servlet mark as asynchrone in web.xml throws IllegalStateException when calling startAsync

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.1.Final
    • 7.0.0.Final
    • Web
    • None

    Description

      I noticed the problem when i put seam-solder in my ear/lib folder.
      Then if i mark my servlet as asynchrone in web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
      <display-name>Mpulse test Servlet 3.0</display-name>

      <servlet>
      <servlet-name>MyServlet</servlet-name>
      <servlet-class>eu.mpulse.test.MyServlet</servlet-class>
      <async-supported>true</async-supported>
      </servlet>

      <servlet-mapping>
      <servlet-name>MyServlet</servlet-name>
      <url-pattern>/servletgrrr/hello</url-pattern>
      </servlet-mapping>
      </web-app>

      a call to startAsync on the servlet throws:
      "java.lang.IllegalStateException: The servlet or filters that are being used by this request do not support async operation"

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            maximilien_jira wiktorowski maximilien (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: