Используя тот же метод getServletContext().getRealPath("/")
для того же запроса, но верните два разных пути в SIT и UAT в Websphere.
- SIT return:
/app/test.ear/test.war/
- UAT return:
/app/test.ear/test2.war/
Я развернул ухо в Websphere, оно содержит test.war и test2.war для совместного использования сеанса.

Приложение . xml в ухе, как следует
<?xml version="1.0" encoding="UTF-8"?>
<application>
<display-name>test</display-name>
<module id="test2">
<web>
<web-uri>test2.war</web-uri>
<context-root>/test2</context-root>
</web>
</module>
<module id="test">
<web>
<web-uri>test.war</web-uri>
<context-root>/</context-root>
</web>
</module>
</application>
В чем причина? Как решить?