response.sendredirect is making my session null when redirecting to jsp from servlet to filter servlet in wildfly 10. but the same works fine in jboss 4 as we are migrating our application from jboss 4 to wildfly 10.
I have tried response.sendredirect(response.encodeRedirectUrl("test.jsp")), but its creating a new session and getting null pointer exception saying session is null for every request.
please help me on this