title: web.xml validation in Weblogic throws error because of cookie-config
body: <p>I have the follwing web.xml for an application.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  &lt;display-name&gt;..&lt;/display-name&gt;
  
  &lt;description&gt;..&lt;/description&gt;
  
  
  
  &lt;session-config&gt;
      &lt;cookie-config&gt;
          &lt;name&gt;SESSIONDEBUG_JSESSIONID&lt;/name&gt;
      &lt;/cookie-config&gt;
    &lt;/session-config&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I get the following error upon deployment</p>
  
  <pre><code>Caused By: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
  problem: cvc-complex-type.2.4a: Expected element 'session-timeout@http://java.sun.com/xml/ns/javaee' instead of 'cookie-    config@http://java.sun.com/xml/ns/javaee' here in element session-    config@http://java.sun.com/xml/ns/javaee:&lt;null&gt;
  </code></pre>
  
  <p>Not sure I fully understand the error. I see that it wants me to declare session-timeout in there. I'll give that a try..</p>