简体   繁体   中英

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. Which also provides the javax.websocket-api-1.0.jar library. 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.

Hopefully this will be helpful

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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