EDIT: removed reference to C# as the only accepted answer is about Java. If someone needs information about websocket server implementation in C#, ask a new
For Java, check out this informative post. Copy-paste from there:
Out of these options, I guess Jetty and Resin are the most mature and stable. However, always good to do your own testing.