This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am running Jboss 4.0.1 and I have an application.ear called pds running on it. To access the application you simple write "http://adress:8080/pds"
Now I wanted to enable ssl on the webapp.war in the application so I changed the server.xml and web.xml and created a keystore and everything. I redirect from "8080" to "8443" and everything works as long as do like this. "https://adress:8443/pds" - works!!
"http://adress:8080/pds/login.jsp" - works! get redirected to "https://adress:8443/pds/xxxxx"
"http://adress:8080/pds" - doesn�t work I get a no page found error.
I really need the the old url "http://adress:8080/pds" to be redirected to "https://adress:8443/pds "
Below follows some relevant sections from my server.xml and web.xml
=============== web.xml ===================== <security-constraint> <display-name>Security for Julius PDS</display-name> <web-resource-collection> <web-resource-name>Julius web Security</web-resource-name> <description>Redirect all to SSL</description> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <description>Protection should be CONFIDENTIAL</description> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>