Grails 2.4.4中的Spring servlet和异步支持

时间:2015-01-16 20:58:04

标签: tomcat grails spring-websocket

Java 7,Tomcat 7,Grails 2.4.4

使用spring-websocket。当我的浏览器访问xhr_streaming或xhr端点(后备选项)时,我在日志中看到此异常:

[ERROR] [2015-01-16 12:53:26,659]  [ajp-apr-10.11.64.209-8009-exec-41] o.c.g.g.w.e.GrailsExceptionResolver: IllegalArgumentException occurred when processing request: [POST] /life/stomp/900/qkl3z58m/xhr_streaming
Async support must be enabled on a servlet and for all filters involved in async request processing. This is done in Java code using the Servlet API or by adding "<async-supported>true</async-supported>" to servlet and filter declarations in web.xml. Also you must use a Servlet 3.0+ container. Stacktrace follows:
org.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request, uri=<removed>/stomp/900/qkl3z58m/xhr_streaming; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure for request <removed>/stomp/900/qkl3z58m/xhr_streaming; nested exception is java.lang.IllegalArgumentException: **Async support must be enabled on a servlet and for all filters involved in async request processing. This is done in Java code using the Servlet API or by adding "<async-supported>true</async-supported>" to servlet and filter declarations in web.xml. Also you must use a Servlet 3.0+ container**

根据WEB-INF / web.xml,我在3.0版本,我的dispatcherServlet和所有过滤器都启用了async-true(由于BuildConfig.groovy中的grails.servlet.version =“3.0”)。

此错误可能还有其他问题吗?

0 个答案:

没有答案