title: Can't use primefaces push
body: <p>I'm trying use p:push in a dialog and I'm getting this error in chrome:</p>
  
  <pre><code>Uncaught Error: INVALID_STATE_ERR: DOM Exception 11 primefaces.js.xhtml:1
      PrimeFaces.widget.PrimeWebSocket.send primefaces.js.xhtml:1
      PrimeFaces.ajax.AjaxUtils.handleResponse primefaces.js.xhtml:1
      PrimeFaces.ajax.AjaxResponse primefaces.js.xhtml:1
      k.success primefaces.js.xhtml:1
      b.Callbacks.bv jquery.js.xhtml:16
      b.Callbacks.bE.fireWith jquery.js.xhtml:16
      bF jquery.js.xhtml:23
      b.ajaxTransport.send.bv
  </code></pre>
  
  <p>Push server is running in jetty 8.1.5.v20120716 at port 9090
  This is part of web.xml of my application:</p>
  
  <pre><code>&lt;context-param&gt;
         &lt;param-name&gt;primefaces.PUSH_SERVER_URL&lt;/param-name&gt;
         &lt;param-value&gt;ws://localhost:9090/push/&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>this is the content of web.xml of push server:</p>
  
  <pre><code>&lt;display-name&gt;PUSH SERVER&lt;/display-name&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Push Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.primefaces.push.PushServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;channels&lt;/param-name&gt;
          &lt;param-value&gt;importador&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Push Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/push/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>the content of dialog:</p>
  
  <pre><code>...
  &lt;h:panelGroup layout="block" styleClass="hrgi-div-form clearfix"&gt;
         &lt;h:panelGroup id="painel" layout="block"&gt;
                  &lt;p:progressBar widgetVar="barraProgressoImportador" ajax="true"
                                 value="#{modeloPopupImportadorImediatoNFe.porcentagem}"/&gt;
                  &lt;h:outputText value="#{modeloPopupImportadorImediatoNFe.mensagem}"/&gt;
         &lt;/h:panelGroup&gt;
         &lt;p:push channel="importador" onmessage="atualizarPorcentagemImportacao"/&gt;
  &lt;/h:panelGroup&gt;
  ...
  </code></pre>
  
  <p>javascript code that is called (just show an alert):</p>
  
  <pre><code>function atualizarPorcentagemImportacao(evt, data){
      alert("importado "+data);
  }
  </code></pre>
  
  <p>and finally the code that try push:</p>
  
  <pre><code>public void abrir() {
          ...
          modeloPopup.setContext(RequestContext.getCurrentInstance());
          modeloPopup.getContext().push("importador", 0);
  }
  </code></pre>
  
  <p>Am I doing something wrong??</p>
  
  <p><B>ADDED</B>
  If it could be useful, this is my pom.xml of push-server</p>
  
  <pre><code>&lt;parent&gt;
      &lt;artifactId&gt;modulos-web&lt;/artifactId&gt;
      &lt;groupId&gt;com.hrgi.web&lt;/groupId&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;/parent&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;artifactId&gt;push-server&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;push-server&lt;/name&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
          &lt;artifactId&gt;jetty-websocket&lt;/artifactId&gt;
          &lt;version&gt;8.1.5.v20120716&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.atmosphere&lt;/groupId&gt;
          &lt;artifactId&gt;atmosphere-runtime&lt;/artifactId&gt;
          &lt;version&gt;1.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;finalName&gt;push-server&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;8.1.5.v20120716&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;connectors&gt;
                      &lt;connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"&gt;
                          &lt;port&gt;9090&lt;/port&gt;
                          &lt;maxIdleTime&gt;60000&lt;/maxIdleTime&gt;
                      &lt;/connector&gt;
                  &lt;/connectors&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>