在 jboss 6.4 中找不到 stomp/sockjs 404 错误 [英] stomp/sockjs 404 not found error in jboss 6.4

查看:57
本文介绍了在 jboss 6.4 中找不到 stomp/sockjs 404 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署使用 stomp/的 spring-websocket-portfolio 示例应用程序带有 spring j2ee 服务器的 sockjs 客户端.

I m trying to deploy spring-websocket-portfolio sample app wich use stomp/sockjs client with spring j2ee server .

同一个war包在Tomcat7成功,在jboss 6.4和Tomcat6失败,404错误码.

the same war package succeed in Tomcat7 and failed in jboss 6.4 and Tomcat6 with 404 error code .

chrome 控制台中的错误是:

The error in chrome console is :

sockjs.js:1622 GET http://localhost:8080/spring-websocket-portfolio/portfolio/info?t=1466117690528 404(未找到)

sockjs.js:1622 GET http://localhost:8080/spring-websocket-portfolio/portfolio/info?t=1466117690528 404 (Not Found)

有什么想法吗?

推荐答案

你的服务器需要是 Servlet 3.0+ 并且应该支持 websocket API.您可以在 Spring 的参考文档,即 Tomcat 7.0.47+、Jetty 9.1+、GlassFish 4.1+、WebLogic 12.1.3+ 和 Undertow 1.0+(和 WildFly 8.0+)代码>.

Your server needs to be Servlet 3.0+ and should support the websocket API. You'll find the list of officially supported servers in Spring's reference documentation, namely Tomcat 7.0.47+, Jetty 9.1+, GlassFish 4.1+, WebLogic 12.1.3+, and Undertow 1.0+ (and WildFly 8.0+).

对于 JBoss 6.4,有一些配置技巧可以在容器中启用 websocket 支持(看这个例子).

For JBoss 6.4, there are a few configuration tricks to enable websocket support in the container (see this example).

这篇关于在 jboss 6.4 中找不到 stomp/sockjs 404 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆