<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Problems with SSL redirection on JBoss 5.1.0GA
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/skidvd">Todd Gould</a> in <i>JBoss Web Development</i> - <a href="http://community.jboss.org/message/553700#553700">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Sorry for the cross post, but thought that this may be a better place for this question.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm using  JBoss [The Oracle] 5.1.0.GA.  In previous releases I have successfully configured SSL and and the associated port redirection without any problems.  However, in this environment, I am having unexpected problems.  Your help will be greatly appreciated....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is what I have....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>from server.xml:</p><p><br/>     <!-- A HTTP/1.1 Connector on port 7000 --><br/>      <Connector protocol="HTTP/1.1" port="7000" address="${jboss.bind.address}" <br/>               connectionTimeout="20000" redirectPort="7001" /></p><p>      <!-- Add this option to the connector to avoid problems with <br/>          .NET clients that don't implement HTTP/1.1 correctly <br/>         restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"<br/>      --></p><p>      <!-- A AJP 1.3 Connector on port 8009 --><br/>      <Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"<br/>         redirectPort="7001" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- SSL/TLS Connector configuration using the admin devl guide keystore--><br/>      <Connector protocol="HTTP/1.1" SSLEnabled="true" enableLookups="true"<br/>           port="7001" address="${jboss.bind.address}"<br/>           scheme="https" secure="true" clientAuth="false" <br/>           keystoreFile="${jboss.home.dir}/certs/mysvr1.jks"<br/>           keystorePass="zzzzz" sslProtocol = "TLS"<br/>           truststoreFile="${jboss.home.dir}/certs/mysvr1Trust.jks"<br/>           truststorePass="zzzzz" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>from my apps web.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>from web.xml:</p><p><security-constraint><br/>        <web-resource-collection><br/>            <web-resource-name>All restricted resources</web-resource-name><br/>            <description>Protects all AppAdmin restricted resources</description><br/>            <url-pattern>/pages/*</url-pattern><br/>            <http-method>GET</http-method><br/>            <http-method>POST</http-method><br/>        </web-resource-collection><br/>        <user-data-constraint><br/>         <transport-guarantee>CONFIDENTIAL</transport-guarantee><br/>        </user-data-constraint><br/></security-constraint></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Symptoms:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><a class="jive-link-external-small" href="http://myserver:7000/Myapp/login.xhtml" target="_blank">http://myserver:7000/Myapp/login.xhtml</a><span> (when I hit this URL, it produces downloadable result - as expected - this is not within the data-constraint resource-collection)</span></p><p><a class="jive-link-external-small" href="http://myserver:7000/Myapp/pages/index.jsf" target="_blank">http://myserver:7000/Myapp/pages/index.jsf</a><span>  (when I hit this URl, I expect to be redirected to SSL port (inside data-constraint); but do NOT get redirected - i.e., URL stays http and port 700 - and results in Cannot find server or DNS error)</span></p><p><a class="jive-link-external-small" href="https://myserver:7001/Myapp/pages/index.jsf" target="_blank">https://myserver:7001/Myapp/pages/index.jsf</a><span> (works as expected - this shows that SSL appears to be configured and working properly)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Why is the redirect from an non SSL URL to an SSL URL (when accessing a data-constratint resource) not happening?  Again, your help is greatly appreciated!</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/553700#553700">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>