title: Adjusting web.xml listeners, filters and servlets
body: <p>Following is outline of what I have in my web.xml config file. I need help putting this into the correct order.</p>
  <h3>web.xml web-app</h3>
  <pre><code> 1. contextConfigLocation applicationContext.xml
   2. defaultHtmlEscape true
   3. listeners 
   4. servlets 
   5. filters &lt;order sensitive&gt;    
   6. session-config timeout 120
   7. error page 404 500
  </code></pre>
  <hr />
  <h2>UPDATE:</h2>
  <p>I'm getting ClassNotFoundException on all my listeners in tomcat's logs/localhost.log
  There are not problems after the application starts just log entries that indicate that something is off.</p>
  <p>I have organized it as per BalusC's suggestions. Any idea why is this happening?</p>
  <p>Where should the session-config go?</p>