Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your <code>web.xml</code> is missing the "URL Configuration" part of PrimeFaces Push setup.</p> <p>As mentioned in my answer on your <a href="https://stackoverflow.com/questions/10758147/a-two-user-tic-tac-toe-using-jsf">previous question</a>, Installation details of PrimeFaces Push are outlined in chapter 6 of PrimeFaces <a href="http://www.primefaces.org/documentation.html" rel="nofollow noreferrer">User's Guide</a>. Here's an extract of relevance for the step you're missing:</p> <blockquote> <h1>6.1 Setup</h1> <h3>Push Server</h3> <p>PrimeFaces Push uses a servlet as a dispatcher. This servlet should be in a different application than the JSF application and at the moment can only be deployed on jetty server.</p> <pre class="lang-xml prettyprint-override"><code>&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;chat,counter&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;/prime-push/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>channels configuration defines the topic names that push server can publish to.</p> <h3>URL Configuration</h3> <p>The JSF application needs to define the push server url to send messages.</p> <pre class="lang-xml prettyprint-override"><code>&lt;context-param&gt; &lt;param-name&gt;primefaces.PUSH_SERVER_URL&lt;/param-name&gt; &lt;param-value&gt;ws://url_to_push_server&lt;/param-value&gt; &lt;/context-param&gt; </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload