Five Stars

ESB routes: https proxy ccxf

I have defined a simple route with two cxf endpoints. 
I intend to publish a http endpoint as https. My idea is to do a https proxy for a http (soap) service with as simple route.
endpoint 1 : https (soap)
endpoint 2 : http
When I try to run the route i always have this  error.
Protocol mismatch for port 9002: engine's protocol is http, the url protocol is https
java.lang.RuntimeException: Protocol mismatch for port 9002: engine's protocol is http, the url protocol is https
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(
at org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(
at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(
at org.apache.cxf.endpoint.ServerImpl.initDestination(
at org.apache.cxf.endpoint.ServerImpl.<init>(
at org.apache.cxf.frontend.ServerFactoryBean.create(
at org.apache.camel.component.cxf.CxfConsumer.<init>(
at org.apache.camel.component.cxf.CxfEndpoint.createConsumer(
at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(
at org.apache.camel.impl.DefaultRoute.onStartingServices(
What did I understand wrong? Is there a way to force the engine to do https?
Thank you for any help or idea.

I am using Talend Open Studio for ESB 5.5.0
One Star

Re: ESB routes: https proxy ccxf

For standalone HTTPS service configuration Jetty server should be configured like

<?xml version="1.0" encoding="UTF-8"?>
<!--Used to inject external resources, beans or define more CamelContext and RouteBuilder here-->
<beans xmlns=""
<import resource="classpath:META-INF/cxf/cxf.xml"/>
  <bean id="jmxEventNotifier" class="">
  <property name="source" value="ServiceProxy"/>
  <property name="ignoreCamelContextEvents" value="true"/>
  <property name="ignoreRouteEvents" value="true"/>
  <property name="ignoreServiceEvents" value="true"/>
  <property name="ignoreExchangeEvents" value="true"/></bean>
 <http:destination name="{}DemoServicePort">    
 <httpj:engine-factory bus="cxf">
 <!-- you just need to specify the TLS Server configuration for the certain port -->
   <httpj:engine port="8060">
       <sec:keyManagers keyPassword="password">
         <sec:keyStore type="JKS" password="password"
         <sec:keyStore type="JKS" password="password"
         <!-- these filters ensure that a ciphersuite with
              export-suitable or null encryption is used,
              but exclude anonymous Diffie-Hellman key change as
              this is vulnerable to man-in-the-middle attacks -->
       <!--sec:clientAuthentication want="true" required="true"/-->


Re: ESB routes: https proxy ccxf

You can also use a relative path so when you deploy to the ESB Runtime (Karaf) it will use the ports provided by the container.  There you can configure keystores and https port in the etc/ config files.
Five Stars

Re: ESB routes: https proxy ccxf

Thank you for the response. It helped a lot.
Does that mean that i need to put something like this in the Address field of the cCXF component?
" }DemoServicePort
I actually configured the keystore in the /etc/org.ops4j.pax.web.cfg file
One Star

Re: ESB routes: https proxy ccxf

Hi Lucas,
Could you please share your solution for this post. I am facing same issue here. My end point is HTTPS, but job fails with "engine's protocol is http, the url protocol is https". Thanks