我的项目在智能j上部署时正在工作,但是它给了我一个错误failed: Error during WebSocket handshake: Unexpected response code: 404部署在tomcat 8上我看到其他一些帖子说这可能是jsr 356库冲突的问题。
这是我的maven dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Web 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ Web ---
[INFO] groupId:Web:jar:1.0-SNAPSHOT
[INFO] +- javax.websocket:javax.websocket-api:jar:1.1:provided
[INFO] - javax.json:javax.json-api:jar:1.0:provided
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.545s
[INFO] Finished at: Thu Oct 01 08:46:35 AEST 2015
[INFO] Final Memory: 8M/113M
[INFO] ------------------------------------------------------------------------
Process finished with exit code 0
我是maven和智能的新手,所以我希望在这个问题上得到任何帮助
谢谢
问题很简单,当我的应用程序部署在intelllij本地使用tomcat插件的url是http://localhost:8080/index.html
然而,当部署在另一个tomcat的url是http://<server_address>:8080/<artifact_name>/index.html
最后的问题是URL不匹配