title: PrimeFaces push and Glassfish
body: <p>I'm using:<br>
  Glassfish 3.1.2.2 (build 5)<br>
  Primefaces 3.4.1<br>
  Firefox 10.0.0.7 on Linux  </p>
  
  <p>Does Primefaces Push work on Glassfish? I ask because when I hit my *.xhtml pages, I keep getting ClassNotFoundExceptions. So I would get a not found exception, download the jar and add new class is not found. So far I've got these jars ...</p>
  
  <p>atmosphere-cometd-1.0.2.jar<br>
  atmosphere-runtime-1.0.2.jar<br>
  cataline-6.0.20.jar  </p>
  
  <p>But my next ClassNotFoundException is org.jboss.servlet.http.HttpEventServlet and because I'm using Glassfish, it's making me wonder if I'm doing this right.</p>
  
  <p>All I'm trying to do is send a message from a MDB into a webpage via primepush and have it appear as a notification in growl.</p>
  
  <p>I've added the following to my web.xml.</p>
  
  <pre><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;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Push Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/primepush/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>This is in my *.xhtml</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function handleMessage(msg) {
          msg.severity = 'info';
          grow.show([msg]);
      }
  &lt;/script&gt;
  
      &lt;p:socket channel="/notifications" onMessage="handleMessage"/&gt;
  </code></pre>
  
  <p>And this is in my message driven bean.</p>
  
  <pre><code>PushContext pushContext = PushContextFactory.getDefault().getPushContext();
  
  pushContext.push("/notifications", new FacesMessage("Test Summary", "Test Detail"));
  </code></pre>
  
  <p>Any help much appreciated.</p>