The application, MyEAR, is trying to modify a cookie which matches a pattern in the restricted programmatic session cookies list <p>I am getting below exception while deploying my application on WebSphere Application Server 8.5.5 </p> <p>java.lang.RuntimeException: SRVE8111E: The application, MyEAR, is trying to modify a cookie which matches a pattern in the restricted programmatic session cookies list [domain=*, name=JSESSIONID, path=/]. </p> <p>I found that if I remove below entry from my web.xml [session-config], then no error is shown with deployment and every things works fine. </p> <pre><code>&lt;cookie-config&gt; &lt;http-only&gt;true&lt;/http-only&gt; &lt;/cookie-config&gt; &lt;tracking-mode&gt;COOKIE&lt;/tracking-mode&gt; </code></pre> <p>The same ear is able to deploy and run perfectly with JBOSS and WebLogic server. </p> <p>Please let me know what configuration change I have to do in which xml file to overcome this issue. </p> <p>My application has application.xml, jboss-deployment-structure.xml and weblogic-application.xml. </p> <p>Thanks in advance. </p>