Hi Anil.
I am unable to understand when and where I will get this 301 code , when will this redirection happen.
When a request comes, container sees is there
defined in <security-constraint>? If yes, it will send 301 code to the browser. Then the browser enables https and comes to container. Basically container will deal with http requests, i.e on port no. 8080.
We have to change the settings in tomcat/conf/server.xml (enable connector on port 8443) and also we need jsse api. For more information see
this.
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6