title: Primefaces Chat Application - web.xml Invalid content was found starting with element
body: <p>I want to implement the PF 3.5 <a href="http://www.primefaces.org/showcase/push/chat.jsf" rel="nofollow noreferrer">Chat Application</a> on a <code>tomcat 7</code> server. I have added that dependencies:</p>
  
  <pre><code>&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;dependency&gt;
      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
      &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
      &lt;version&gt;1.7.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
      &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
      &lt;version&gt;1.7.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>However, I when I implement that <code>web.xml</code>:</p>
  
  <pre><code>&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      version="2.5"&gt;
  </code></pre>
  
  <p>...</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;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;org.atmosphere.cpr.broadcasterCacheClass&lt;/param-name&gt;
          &lt;param-value&gt;org.atmosphere.cache.HeaderBroadcasterCache&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;org.atmosphere.cpr.broadcasterClass&lt;/param-name&gt;
          &lt;param-value&gt;org.atmosphere.cpr.DefaultBroadcaster&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;org.atmosphere.cpr.broadcastFilterClasses&lt;/param-name&gt;
          &lt;param-value&gt;org.atmosphere.client.TrackMessageSizeFilter&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;org.atmosphere.cpr.sessionSupport&lt;/param-name&gt;
          &lt;param-value&gt;true&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;/primepush/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>As an excpetion I get:</p>
  
  <pre><code>cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/
   xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref}' is expected.
  </code></pre>
  
  <p>btw I get the exception at the <code>&lt;init-param&gt;</code> tag.</p>
  
  <p>I really appreciate your answer!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I get the same excpetion when I just write that:</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;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>I also get the expcetion at the <code>&lt;init-param&gt;</code> tag</p>