title: Spring Websocket and 404 status on connection
body: <p>In a working Spring MVC 4.0.2 project running under Tomcat 7.0.50, I'm trying to implement Spring Websocket with simple broker and sockjs stomp endpoint, following the <a href="http://docs.spring.io/spring/docs/4.0.2.RELEASE/spring-framework-reference/htmlsingle/#websocket" rel="nofollow noreferrer">official reference</a>. So, in the contextConfigLocation (DistpacherServlet property) I've add a value "websocket-config.xml" which contains:</p>
  
  <pre><code>&gt;     &lt;websocket:message-broker application-destination-prefix="/app" &gt;
  &gt;           &lt;websocket:stomp-endpoint path="/monitor"&gt;
  &gt;             &lt;websocket:sockjs /&gt;
  &gt;           &lt;/websocket:stomp-endpoint&gt;
  &gt;           &lt;websocket:simple-broker prefix="/topic"/&gt;
  &gt;     &lt;/websocket:message-broker&gt;
  </code></pre>
  
  <p>In eclipse console (catalina log) when I start Tomcat, appear the rows</p>
  
  <blockquote>
    <ul>
    <li>Initializing ExecutorService  'clientInboundChannelExecutor'</li>
    <li>Initializing ExecutorService  'clientOutboundChannelExecutor'</li>
    <li>Initializing ExecutorService  'messageBrokerSockJsScheduler'</li>
    <li>Mapped URL path [/monitor/**] onto handler of type [class org.springframework.web.socket.sockjs.support.SockJsHttpRequestHandler]</li>
    </ul>
  </blockquote>
  
  <p>In the jsp page I put the code</p>
  
  <blockquote>
    <p>. . . .<br>
       var socket = new SockJS("monitor");<br>
       var stompClient = Stomp.over(socket);
       . . . .</p>
  </blockquote>
  
  <p>Unfortunately when I load the jsp page from Chrome (v32), I get this error: </p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 404 (Not Found)</p>
    
    <blockquote>
      <p>http ://localhost:8080/(ProjectName)/monitor/info</p>
    </blockquote>
  </blockquote>
  
  <p>Obviously I'm doing this test locally, then all other webapp resources are reachable at http ://localhost/(ProjectName) correctly. </p>
  
  <p>What's wrong?</p>
  
  <p>**** Update 20 Feb 2014
  I've tried to follow <a href="https://stackoverflow.com/questions/17868232/how-to-use-tomcat-8-in-eclipse">this</a> resolved stack question, which suggests to use Tomcat8 for Spring Websocket, unfortunately it doesn't work</p>