<!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;">
cxf.xml doesn't work under JBoss 6.1
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/tao_dl">Tao Sang</a> in <i>JBoss Web Services Development</i> - <a href="http://community.jboss.org/message/637679#637679">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Dear Forum,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Currently under JBoss 6.1, I have a problem by calling web service over https (SSL), which has a self-signed certificate. By using a dummy (certificate)TrustManager, I got one step further with following errors:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="color: #800000;">Caused by: java.io.IOException: The https URL hostname does not match the Common Name (CN) on the server certificate.  To</span></p><p><span style="color: #800000;">disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I googled and found that I need to set a cxf client configuration file with the project. Then I created a cxf.xml with following content and left it in the folder: <strong>myProject-ejb\src\main\resources\</strong> :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="color: #008000;"><span> <beans xmlns="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><span>"</span></strong></p><p><strong style="color: #008000;"><span>      xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></strong></p><p><strong style="color: #008000;"><span>      xmlns:http-conf="</span><a class="jive-link-external-small" href="http://cxf.apache.org/transports/http/configuration" target="_blank">http://cxf.apache.org/transports/http/configuration</a><span>"      </span></strong></p><p><strong style="color: #008000;">      xsi:schemaLocation="</strong></p><p><strong style="color: #008000;"><span>          </span><a class="jive-link-external-small" href="http://cxf.apache.org/configuration/security" target="_blank">http://cxf.apache.org/configuration/security</a></strong></p><p><strong style="color: #008000;"><span>          </span><a class="jive-link-external-small" href="http://cxf.apache.org/schemas/configuration/security.xsd" target="_blank">http://cxf.apache.org/schemas/configuration/security.xsd</a></strong></p><p><strong style="color: #008000;"><span>          </span><a class="jive-link-external-small" href="http://cxf.apache.org/transports/http/configuration" target="_blank">http://cxf.apache.org/transports/http/configuration</a></strong></p><p><strong style="color: #008000;"><span>          </span><a class="jive-link-external-small" href="http://cxf.apache.org/schemas/configuration/http-conf.xsd" target="_blank">http://cxf.apache.org/schemas/configuration/http-conf.xsd</a></strong></p><p><strong style="color: #008000;"><span>          </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a></strong></p><p><strong style="color: #008000;"><span>          </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans.xsd" target="_blank">http://www.springframework.org/schema/beans/spring-beans.xsd</a><span>"></span></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="color: #008000;"><span><http-conf:conduit name="{</span><a class="jive-link-external-small" href="https://server.company.com:8443/" target="_blank">https://server.company.com:8443/</a><span>}WebService.http-conduit"></span></strong></p><p><strong style="color: #008000;">    <http-conf:tlsClientParameters  secureSocketProtocol="SSL" disableCNCheck="true"/></strong></p><p><strong style="color: #008000;"></http-conf:conduit></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="color: #008000;"><http-conf:conduit name="*.http-conduit"></strong></p><p><strong style="color: #008000;">    <http-conf:tlsClientParameters  disableCNCheck="true" secureSocketProtocol="SSL"/></strong></p><p><strong style="color: #008000;"></http-conf:conduit></strong></p><p><strong style="color: #008000;"></beans></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>However, I always get the above errors. Did I do something wrong? I saw that the cxf.xml file has been copied into the root folder of the <strong>myProject-ejb.jar</strong> file, but I don't know if the cxf.file really works. How can I check if the cxf.xml is working?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks in advance!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Tao</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/637679#637679">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>