• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

The application, XYZ, is trying to modify a cookie which matches a pattern in the restricted program

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am getting below exception while deploying my application on WebSphere Application Server 8.5.5

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=/].

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.
<cookie-config>
<http-only>true</http-only>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>

The same ear is able to deploy and run perfectly with JBOSS and WebLogic server.

Please let me know what configuration change I have to do in which xml file to overcome this issue.

My application has application.xml, jboss-deployment-structure.xml and weblogic-application.xml.

Thanks in advance.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either modify the application to use a different cookie name, domain, or path or modify the restricted programmatic session cookie values.

You can modify settings from here:

Servers > WebSphere application servers > server_name > Session management > Enable cookies > Restrict cookies to HTTPS sessions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!