简体   繁体   English

play1.3.1 websocket地址为404错误

[英]play1.3.1 websocket address is 404 error

我在tomcat8下使用play1.3.1的websocket,连接地址为404错误,play的websocket不支持Tomcat?谁能帮帮我?

May be it's a libraries issue, clean and then deploy your project it'll run fine.. 可能是库问题,请清理然后再部署您的项目,它将运行良好。

Also check if this is the root of your error: 还要检查这是否是错误的根源:

Tomcat has a JSR-356 (ie the websocket API) implementation since version 7.0.47. 从7.0.47版本开始,Tomcat具有JSR-356(即websocket API)实现。 Which also provides the javax.websocket-api-1.0.jar library. 它还提供了javax.websocket-api-1.0.jar库。 You might need it at compile time but the server will provide it at runtime 您可能在编译时需要它,但是服务器将在运行时提供它

Make sure javax.websocket-api-1.0.jar does not get deployed in your WAR, do a right click in your Eclipse server view, Clean... followed by Clean Tomcat work directory... then a Publish and try again. 确保在您的WAR中未部署javax.websocket-api-1.0.jar,右键单击Eclipse服务器视图中的Clean(清洁),然后单击Clean Tomcat work directory(清洁Tomcat工作目录),然后单击Publish,然后重试。

Hopefully this will be helpful 希望这会有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM