title: How to configure Spring 4 WebSocket with sockjs using xml configuration
body: <p>Hi my current websocket configuration is.</p>
  
  <pre><code>    &lt;websocket:message-broker application-destination-prefix="/app"&gt;
          &lt;websocket:stomp-endpoint path="/chat"&gt;
              &lt;websocket:sockjs&gt;&lt;/websocket:sockjs&gt;
          &lt;/websocket:stomp-endpoint&gt;
          &lt;websocket:simple-broker prefix="/topic"/&gt;
      &lt;/websocket:message-broker&gt;
  </code></pre>
  
  <p>and my url pattern configuration is</p>
  
  <pre><code>    &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>if i change to pattern to '/' then it works fine else
  the give an error</p>
  
  <pre><code>GET http://localhost:8080/demoapp/chat/info 404 (Not Found)
  </code></pre>
  
  <p>what is wrong please suggest.</p>
  
  <p>thanks</p>