hi all,
i am using
tomcat 5.5 as web server and i want to redirect the http pages to https automatically.for that i have changed server.xml and web.xml file in the following manner:
server.xml file: i just uncommented the code below-
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="conf/keystore" keystorePass="changeit"
/>
-->
web.xml file: i wrote the code below
<security-constraint>
<web-resource-collection>
<web-resource-name>all-except-attachments</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>Confidential</transport-guarantee>
</user-data-constraint>
</security-constraint>
Everything is going fine but the problem is when i send http request IE asks for security exception and after comfirming it redirected to https but page contents are not visible and when i refreshed the page, page is displayed instantly.I tried to figure out the problem but in vain.
Actually same settings i did for my local server tomcat 6.0.16. n there was no such problem. but when i applied that setting to the company server tomcat 5.5 then it is having this problem.
Please HELP!