8 Replies Latest reply on Jul 20, 2012 9:08 AM by Ja kub

    cxf https via jaxws:endpoint without using org.ops4j.pax.web.cfg

    Ja kub Novice

      how can I configure jaxws:endpoint to use https without using org.ops4j.pax.web.cfg

      - on my own configured cxf,

      with cxf:endpoint it is sufficient to set address="https://localhost:8443/..."

      jaxws:endpoint fails (tries to use default port and http, setting address doesn't help)

       

      windows

      fuseservicemix-4.4.1-fuse-06-03

      file etc\org.ops4j.pax.web.cfg.stub is with stub suffix (unused)

       

      <jaxws:endpoint implementor="#abcBean" address="https://localhost:8443/cxf/abcChannel"...

       

      I get error

      Caused by: java.lang.RuntimeException: Protocol mismatch for port 8443: engine's protocol is http, the url protocol is https

       

      similar service works fine but is exposed with

       

      <cxf:cxfEndpoint

                id="fsmChannel" address="https://localhost:8443/cxf/worksOkChannel"...

       

      cxf:cxfEndpointworks fine,

      cxf:cxfEndpoint doesn't use default port, is configured with

       

          <httpj:engine-factory bus="cxf">

                <httpj:identifiedTLSServerParameters id="secure">

                 <httpj:tlsServerParameters>

                   <sec:keyManagers keyPassword="pass1234">

                     <sec:keyStore type="JKS" password="pass1234"

                                 file="etc/privatestore.jks"/>

                   </sec:keyManagers>

                   <sec:trustManagers>

                     <sec:keyStore type="JKS" password="soapui1234"

                          file="C:\opt\apache-servicemix-4.4.1-fuse-06-03\etc\moj_ca.jks"/>

                      </sec:trustManagers>

                     <sec:clientAuthentication want="true"

                      required="true" />

                       

                 </httpj:tlsServerParameters>

               </httpj:identifiedTLSServerParameters>   

                

              <httpj:engine port="8443" host="localhost" >

                   <httpj:tlsServerParametersRef id="secure" />

                  <httpj:threadingParameters minThreads="5"

                                             maxThreads="15" />

       

                   

                  <httpj:sessionSupport>true</httpj:sessionSupport>

              </httpj:engine>

          </httpj:engine-factory>

       

      Thx