play2war / play2-war-plugin

WAR Plugin for Play framework 2.x
Apache License 2.0
443 stars 71 forks source link

Asynchronous operations #306

Open Creepix opened 8 years ago

Creepix commented 8 years ago

I'm using play2war 1.4-beta1 plugin with play 2.4.6 on tomcat 8. There is SPNEGO filter on that tomcat, which I want to use with my play application in purpose to have remote user name. As I understand http asynchronous request processing is available, but I'm getting:

java.lang.IllegalStateException: A filter or servlet of the current chain does not support asynchronous operations. org.apache.catalina.connector.Request.startAsync(Request.java:1621) org.apache.catalina.connector.Request.startAsync(Request.java:1614) org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030) javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379) play.core.server.servlet31.Play2Servlet31RequestHandler.(RequestHandler31.scala:21) play.core.server.servlet31.Play2Servlet.getRequestHandler(Play2Servlet31.scala:21) play.core.server.servlet31.Play2Servlet.getRequestHandler(Play2Servlet31.scala:18) play.core.server.servlet.GenericPlay2Servlet.service(GenericPlay2Servlet.scala:34) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) net.sourceforge.spnego.SpnegoHttpFilter.doFilter(SpnegoHttpFilter.java:250)

Any suggestions how to fix it?

dlecan commented 8 years ago

How did you configure the filter ?