My Oracle Support Banner

ServletUtil.getCurrentServletContext Returns Different Context In The Same Session In JBoss EAP 7.4 (Doc ID 2915147.1)

Last updated on DECEMBER 13, 2022

Applies to:

Oracle Commerce Platform - Version 11.3.2 and later
Information in this document applies to any platform.


After migrating to JBoss 7.4 there is a change noticed in the behavior of the ServletUtil.getCurrentServletContext method ( )

The customer has multiple web applications that are sharing the same session between apps, as described here:

When a request comes in without a session ID in the cookie (application with the root context-root ("/")), the ServletUtil.getCurrentServletContext method is initially returning the contextPath from atg_bootstrap.war app (context-root="/dyn) eg.

This behavior leads to an error with serving the first request in a session.

Furthermore, along with the above behavior it was observed that multiple seemingly duplicated sessions are found in the GenericSessionManager as a result of those requests.


Customer migrated from JBoss EAP 7.2 to 7.4


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.