I\'ve downloaded the latest Jetty 8 Hightide, but cannot get WebSockets to work. I unzip the distribution, put my .war file in the webapps folder and start:
I experienced the same using jetty-maven-plugin and version 8.0.3.v20111011
. However the solution was simple. Just include the jetty-websocket
as a compiled scope dependency (i.e. don't declared scope).
Relevant sections of pom.xml
:
...
UTF-8
8.0.3.v20111011
...
...
org.mortbay.jetty
jetty-maven-plugin
${jetty.version}
org.eclipse.jetty
jetty-websocket
${jetty.version}
...