Hi,

I think this is expected behavior, your browser need some configuration to trust the host with https.

Take a look at similar discussion[1]

[1]http://cxf.547215.n5.nabble.com/SSL-example-breaks-firefox-no-cipher-suites-in-common-td3340625.html

Freeman


On 2011-10-19, at 上午11:05, nkunkov wrote:

Freeman,

Thanks so much!
That solved the problem with https error....

It looks like the server is being deployed but something is still wrong -
can't get the WSDL...
In the log I see the following:
Oct 18, 2011 10:55:57 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://impl.ws.test.com/}NotifyNewSearchWSImplService from class
com.test.ws.service.INotifyNewSearchWS
Oct 18, 2011 10:55:58 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
https://myserver:443/datax/services/NotifyNewSearch
Oct 18, 2011 10:55:58 PM org.eclipse.jetty.util.log.Slf4jLog info
INFO: jetty-7.4.5.v20110725
Oct 18, 2011 10:55:59 PM org.eclipse.jetty.util.log.Slf4jLog info
INFO: Started CXFJettySslSocketConnector@0.0.0.0:443 STARTING
Oct 18, 2011 10:55:59 PM org.eclipse.jetty.util.log.Slf4jLog info
INFO: started o.e.j.s.h.ContextHandler{/datax/services,null}

The above seems fine - no errors.
When I do this:
https://myserver:443/datax/services/NotifyNewSearch?wsdl
I get the IE Can not display page message.....
There are no other errors...
Below is my cxf.xml.

Any ideas why this is happening?  Is this https configuration or my
interceptors or something else?
Again, appreciate your help very much...


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxws="http://cxf.apache.org/jaxws";
        xmlns:sec="http://cxf.apache.org/configuration/security";
 xmlns:http="http://cxf.apache.org/transports/http/configuration";
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration "
        xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/configuration/security
                      http://cxf.apache.org/schemas/configuration/security.xsd
          http://cxf.apache.org/transports/http/configuration
             http://cxf.apache.org/schemas/configuration/http-conf.xsd
          http://cxf.apache.org/transports/http-jetty/configuration
http://cxf.apache.org/schemas/configuration/http-jetty.xsd ">
   <import resource="classpath:META-INF/cxf/cxf.xml" />
   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
   <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http- jetty.xml"
/>

   <jaxws:endpoint
     id="NotifyNewSearch"
     implementor="com.test.ws.impl.NotifyNewSearchWSImpl"
     address="https://myserver:443/datax/services/NotifyNewSearch"; >

     <jaxws:inInterceptors>
                <ref bean="RequestInterceptor"/>
<bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
            </jaxws:inInterceptors>
            <jaxws:outInterceptors>
                <ref bean="ResponseInterceptor"/>
<bean class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor"/>
            </jaxws:outInterceptors>
     </jaxws:endpoint>

   <bean name="RequestInterceptorFactory"
class="com.escholar.beans.RequestInterceptor"/>
<bean name="RequestInterceptor" factory- bean="RequestInterceptorFactory"
factory-method="getInstance"/>
   <bean name="ResponseInterceptorFactory"
class="com.escholar.beans.ResponseInterceptor"/>
<bean name="ResponseInterceptor" factory- bean="ResponseInterceptorFactory"
factory-method="getInstance"/>

       <httpj:engine-factory bus="cxf">
   <httpj:identifiedTLSServerParameters id="secure">
     <httpj:tlsServerParameters>
       <sec:keyManagers keyPassword="pwd">
           <sec:keyStore type="JKS" password="testpwd"
                file="C:\test.keystore"/>
      </sec:keyManagers>
      <sec:trustManagers>
          <sec:keyStore type="JKS" password="trpwd"
               file="C:\trust.keystore"/>
      </sec:trustManagers>
      <sec:cipherSuitesFilter>
        <sec:include>.*_EXPORT_.*</sec:include>
        <sec:include>.*_EXPORT1024_.*</sec:include>
        <sec:include>.*_WITH_DES_.*</sec:include>
        <sec:include>.*_WITH_NULL_.*</sec:include>
        <sec:exclude>.*_DH_anon_.*</sec:exclude>
      </sec:cipherSuitesFilter>
      <sec:clientAuthentication want="true" required="true"/>
     </httpj:tlsServerParameters>
   </httpj:identifiedTLSServerParameters>

   <httpj:engine port="443">
     <httpj:tlsServerParametersRef id="secure" />
     <httpj:threadingParameters minThreads="5" maxThreads="15" />

     <httpj:sessionSupport>true</httpj:sessionSupport>
   </httpj:engine>
 </httpj:engine-factory>


</beans>


--
View this message in context: 
http://cxf.547215.n5.nabble.com/mismatch-for-port-443-even-with-interceptors-in-cxf-xml-tp4915430p4916241.html
Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to