title: tomcat 8 javax.websockets doesn't work
body: <p>I have tomcat 8-RC1 installed in order to use javax.websockets to write websocket based applications. </p>
  
  <p>there are examples at <a href="http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/" rel="nofollow">http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/</a> that show exactly the structure of a websocket class so I implemented the following interface:</p>
  
  <pre><code>public interface XpoWebSocket {
  
  @OnOpen
  public void onOpen(Session session);
  
  @OnClose
  public void onClose();
  
  @OnMessage
  public void onTextMessage(String message);
  
  public Session getSession();
  
  }
  </code></pre>
  
  <p>in the line above the class deceleration I also included the following:</p>
  
  <pre><code>@ServerEndpoint(value = "/ServConnect")
  public class ServConnect implements XpoWebSocket {
  ...
  </code></pre>
  
  <p>so the ServerEndPoint is to point how to access to websocket, the question is what do i need to set in web.xml ? for now the web socket is still not accessible.</p>
  
  <p>I try to define ServConnect as a regular Servlet in web.xml but that doesn't work. it just time out when I try to access the ServConnect location. </p>
  
  <p>what configuration am I missing to let this ServConnect websocket class work ?</p>