maven - websocket not working on tomcat 8 -


my project working when deployed on intellij, giving me error failed: error during websocket handshake: unexpected response code: 404 when deployed on tomcat 8. saw other posts saying might issue jsr 356 libraries conflict.

this maven dependency:tree

[info] scanning 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 exit code 0 

i new maven , intellij appreciate assistance issue

thanks

the problem quite simple, when application deployed on intellij locally using tomcat plugin url http://localhost:8080/index.html when deployed on tomcat url http://<server_address>:8080/<artifact_name>/index.html

so @ end problem url mismatch.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -