so, now that the issues around dynamic configuration are resolved, the next
problem I'm encountering is being able to have both HTTP and HTTPS listeners
in CXF (different ports of coarse).

I tried having an engine-factory setting for each and ever port, then I
tried having just one engine-factory setting using the TLS Server Parameter
Ref.  Neither worked - in fact neither worked even if I had HTTPS configured
for ALL CXF ports - it would always fail if I configured the first port
HTTPS and any subsiquent port HTTPS.  All is good if the first occurance is
HTTPS and subsiquents are all HTTP.

The error is on the first occurance in a mixed set and is:

{code}
org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol
mismatch for port 9002: engine's protocol is http, the url protocol is https
{code}

my configuration is:

Glassfish 3.1.2
Camel 2.10.2

{code}
        <httpj:engine-factory bus="cxf">
                <httpj:identifiedTLSServerParameters id="cxfTLSconfig">
                        <httpj:tlsServerParameters>
                                <sec:keyManagers 
keyPassword="${nextgate.ms.sec.privatekey.password}">
                                        <sec:keyStore type="JKS"
password="${nextgate.ms.sec.keystore.password}"
file="${nextgate.ms.sec.keystore.file}" />
                                </sec:keyManagers>
                                
                                <sec:trustManagers>
                                        <sec:keyStore type="JKS"
password="${nextgate.ms.sec.truststore.password}"
file="${nextgate.ms.sec.truststore.file}" />
                                </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="false" 
required="false" />
                                
                        </httpj:tlsServerParameters>
                </httpj:identifiedTLSServerParameters>
                
                <httpj:engine port="${nextgate.ms.hl7v3.pdq.listenport}">
                        <httpj:tlsServerParametersRef id="cxfTLSconfig"/>
                        <httpj:sessionSupport>true</httpj:sessionSupport>
                </httpj:engine>

                <httpj:engine port="${nextgate.ms.hl7v3.pix.listenport}">
                        <httpj:tlsServerParametersRef id="cxfTLSconfig"/>
                        <httpj:sessionSupport>true</httpj:sessionSupport>
                </httpj:engine>

                <httpj:engine port="${nextgate.ms.hl7v3.xcpd.listenport}">
                        <httpj:tlsServerParametersRef id="cxfTLSconfig"/>
                        <httpj:sessionSupport>true</httpj:sessionSupport>
                </httpj:engine>
                
        </httpj:engine-factory>

        <cxf:cxfEndpoint        id="pdqSupplierEndpoint"
                                        
address="https://${nextgate.ms.hl7v3.pdq.listenaddr}:${nextgate.ms.hl7v3.pdq.listenport}/services/PDQSupplier";
                                                
serviceClass="ihe.iti.pdqv3._2007.PDQSupplierPortType">
                
                <cxf:binding>
                        <soap:soapBinding mtomEnabled="true" version="1.2" />
                </cxf:binding>

        </cxf:cxfEndpoint>

        <cxf:cxfEndpoint        id="pixManagerEndpoint"
                                                
endpointName="pixManagerEndpoint"
                                                bus="cxf"
                                        
address="https://${nextgate.ms.hl7v3.pix.listenaddr}:${nextgate.ms.hl7v3.pix.listenport}/services/PIXManager";
                                                
serviceClass="ihe.iti.pixv3._2007.PIXManagerPortType">
                
                <cxf:binding>
                        <soap:soapBinding mtomEnabled="true" version="1.2" />
                </cxf:binding>

        </cxf:cxfEndpoint>

        <cxf:cxfEndpoint        id="xcpdRespondingGatewayEndpoint"
                                        
address="https://${nextgate.ms.hl7v3.xcpd.listenaddr}:${nextgate.ms.hl7v3.xcpd.listenport}/services/RespondingGateway";
                                                
serviceClass="ihe.iti.xcpd._2009.RespondingGatewayPortType">
                
                <cxf:binding>
                        <soap:soapBinding mtomEnabled="true" version="1.2" />
                </cxf:binding>

        </cxf:cxfEndpoint>

{code}

any clues would be greatly appreciated!!!

thanks!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Mixed-HTTP-and-HTTPS-Listeners-Using-CXF-tp5722606.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to