[jboss-jira] [JBoss JIRA] Commented: (AS7-1423) Servlet mark as asynchrone in web.xml throws IllegalStateException when calling startAsync
wiktorowski maximilien (JIRA)
jira-events at lists.jboss.org
Mon Aug 1 10:28:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617867#comment-12617867 ]
wiktorowski maximilien commented on AS7-1423:
---------------------------------------------
After some debugging i noticed it is due to weld conversation propagation filter that's not marked as async-supported. The same problem was solved in JBoss A6 https://issues.jboss.org/browse/JBAS-8294.
So i make the equivalent patch on https://github.com/maximilienw/jboss-as.
> Servlet mark as asynchrone in web.xml throws IllegalStateException when calling startAsync
> ------------------------------------------------------------------------------------------
>
> Key: AS7-1423
> URL: https://issues.jboss.org/browse/AS7-1423
> Project: Application Server 7
> Issue Type: Bug
> Components: Web
> Affects Versions: 7.0.0.Final
> Reporter: wiktorowski maximilien
> Assignee: Remy Maucherat
> Attachments: ear.ear
>
>
> 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"
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list