the issue I have is related to the WebSockets. I implemented WebSockets within the same application, with JavaScript code as a client and Spring Java application as a server. I used SockJS.
The issue is that on localhost, WebSockets are working perfectly fine, however, when I deploy the application to the environment (which uses NGINX and WebLogic), I am unable to connect to the WebSocket endpoint. In the logs I can find following stacktrace:
java.lang.ClassCastException: class org.springframework.session.web.http.SessionRepositoryFilter$SessionRepositoryRequestWrapper$HttpSessionWrapper cannot be cast to class weblogic.servlet.security.internal.SessionSecurityData (org.springframework.session.web.http.SessionRepositoryFilter$SessionRepositoryRequestWrapper$HttpSessionWrapper is in unnamed module of loader weblogic.utils.classloaders.ChangeAwareClassLoader @51503df3; weblogic.servlet.security.internal.SessionSecurityData is in unnamed module of loader com.oracle.classloader.weblogic.LaunchClassLoader @57c758ac)
at weblogic.servlet.security.internal.SecurityModule.getCurrentUser(SecurityModule.java:203)
at weblogic.websocket.tyrus.TyrusServletFilter.doFilter(TyrusServletFilter.java:167)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
at org.springframework.web.servlet.resource.ResourceUrlEncodingFilter.doFilter(ResourceUrlEncodingFilter.java:67)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
The error that I have is 500.