I played with JAX-RS Websocket example and noticed that it does not work as expected when context path consists of several sections.
I modified CONTEXT_PATH to be "/demo/error" then started demo server and established websocket connection to "ws://localhost:9000/demo/error". It was success but all requests failed:
I tried following requests:
GET /demo/error/customerservice/customers/123 (returned 404)
GET /error/customerservice/customers/123 (returned 400)
GET /customerservice/customers/123 (returned 400)