servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acostela <acostela1...@gmail.com>
Subject CXF-BC with SSL : Port 8194 is configured with wrong protocol
Date Fri, 19 Jul 2013 14:26:28 GMT
Hello.

I am new to servicemix and I'm trying to implement a SSL (https) protocol
point into a "cxfbc" componente. When I deploy I get the following error in
my servicemix LOG. 

16:08:12,670 | ERROR | mix-4.3.0/deploy | CxfBcComponent                   |
121 - servicemix-common - 2011.01.0 |
javax.jbi.management.DeploymentException: java.io.IOException: Protocol
mismatch for port 8194: engine's protocol is http, the url protocol is https
16:08:12,670 | INFO  | mix-4.3.0/deploy | FileSystemXmlApplicationContext  |
61 - org.springframework.context - 3.0.5.RELEASE | Closing
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@5bc6ffd3:
startup date [Fri Jul 19 16:08:12 CEST 2013]; root of context hierarchy
16:08:12,670 | INFO  | mix-4.3.0/deploy | DefaultListableBeanFactory       |
59 - org.springframework.beans - 3.0.5.RELEASE | Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@632f19fe:
defining beans
[cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.servicemix.cxfbc.CxfBcConsumer#0,org.apache.servicemix.cxfbc.CxfBcProvider#0,org.apache.servicemix.cxfbc.CxfBcProvider#1];
parent: org.apache.servicemix.common.xbean.SimpleBeanFactory@1505cd7b
16:08:12,671 | ERROR | mix-4.3.0/deploy | ServiceAssemblyInstaller         |
124 - org.apache.servicemix.jbi.deployer - 1.4.0 | Error deploying SU
jbi-service-provider.taxi-service-provider-soap-su
javax.jbi.management.DeploymentException: java.io.IOException: Protocol
mismatch for port 8194: engine's protocol is http, the url protocol is https
	at
org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:562)[156:servicemix-cxf-bc:2011.01.0]
	at
org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)[121:servicemix-common:2011.01.0]
	at
org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)[121:servicemix-common:2011.01.0]
	at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:98)[121:servicemix-common:2011.01.0]
	at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)[121:servicemix-common:2011.01.0]
	at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)[121:servicemix-common:2011.01.0]
	at
org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java:104


I have searched trough this forum and I saw this topic ---> click here
<http://servicemix.396122.n5.nabble.com/CXF-BC-with-SSL-Port-8181-is-configured-with-wrong-protocol-td418700.html>
 

I have made what they say but I still got the same problem.

*xbean.xml*
<beans xmlns="http://www.springframework.org/schema/beans"
		 xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
		 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:tr="http://www.taxiserviceprovider.eu/transmitter/definitions"
       xmlns:sp="http://www.taxiserviceprovider.eu/definitions"
      
xmlns:cmf="http://www.ict-ccast.eu/CMF/GetTaxiDriverInformation/DomSpec/definitions"
       xmlns:tx="http://jbimulti2.iaas.uni-stuttgart.de/taxiscenario"
	
		 xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
		 							http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
		 							http://www.springframework.org/schema/beans
		 							http://www.springframework.org/schema/beans/spring-beans-2.0.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"/>
    

<cxfbc:consumer service="tr:TaxiTransmitter"
                endpoint="TaxiTransmitterSOAP"
                targetService="tx:TaxiTransmitterRouter"
                targetEndpoint="ep"
                wsdl="classpath:TaxiTransmitter.wsdl"
                useJBIWrapper="false"
               
locationURI="https://0.0.0.0:8194/TaxiTransmitter/services/TaxiTransmitterSOAP"
                >
                <cxfbc:inInterceptors>
                        <bean
class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                </cxfbc:inInterceptors>
                <cxfbc:outInterceptors>
                        <bean
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
                </cxfbc:outInterceptors>
                <cxfbc:inFaultInterceptors>
                        <bean
class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                </cxfbc:inFaultInterceptors>
                <cxfbc:outFaultInterceptors>
                        <bean
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
                </cxfbc:outFaultInterceptors> 
                <cxfbc:providedBus>
                        <ref bean="cxf"/>
                </cxfbc:providedBus> 
</cxfbc:consumer>
                 
<cxfbc:provider service="cmf:GetTaxiDriverInformation"
                endpoint="GetTaxiDriverInformationPort"
                wsdl="classpath:GetTaxiDriverInformationArtifacts.wsdl"
                 >
</cxfbc:provider>
                
<cxfbc:provider service="sp:TaxiServiceProviderSoapHttpProvider"
                endpoint="TaxiServiceProviderSoapHttpProviderPort"
                wsdl="classpath:TaxiServiceProviderArtifacts.wsdl"
                >                    
</cxfbc:provider>

</beans>

*cxf-ssl.xml*
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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" 
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  xsi:schemaLocation="
      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://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
 
  <http:destination
name="{http://TaxiTransmitter/}TaxiTransmitterSOAP.http-destination">
    </http:destination>
 
 	<httpj:engine-factory bus="cxf">

    <httpj:engine port="8194">
    	<httpj:tlsServerParameters>
    		<sec:keyManagers keyPassword="password">
    			<sec:keyStore type="JKS" password="password"
    							  resource="server.keystore"/>
    		</sec:keyManagers>
    		<sec:trustManagers>
    			<sec:keyStore type="JKS" password="password"
    			   resource="server.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:include>.*_DH_anon_.*</sec:include>
    		</sec:cipherSuitesFilter>
    		<sec:clientAuthentication want="true" required="true"/>
    		</httpj:tlsServerParameters>
		</httpj:engine>
	</httpj:engine-factory> 

  <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl"/>
 </beans>

*TaxiTransmitter.wsdl*
<definitions name="TaxiTransmitter" xmlns="http://schemas.xmlsoap.org/wsdl/"
 
targetNamespace="http://www.taxiserviceprovider.eu/transmitter/definitions"
  xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:tns="http://www.taxiserviceprovider.eu/transmitter/definitions"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:types="http://www.taxiserviceprovider.eu/transmitter/types"
  xmlns:tsptns="http://www.taxiserviceprovider.eu/types">

  
  <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" 
      targetNamespace="http://www.taxiserviceprovider.eu/types"
      xmlns:tns="http://www.taxiserviceprovider.eu/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified">
    
      
      
      <xsd:complexType name="customerType">
        <xsd:sequence>
          <xsd:element name="phone" type="xsd:string" />
          <xsd:element name="email" type="xsd:string" />
          <xsd:element name="messenger" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
      
      <xsd:element name="TaxiBookingRequest">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="customerID" type="xsd:string" />
            <xsd:element name="originLocation" type="xsd:string" />
            <xsd:element name="destinationLocation" type="xsd:string" />
            <xsd:element name="customerInfo" type="tns:customerType" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      
        
      <xsd:complexType name="taxiType">
        <xsd:sequence>
          <xsd:element name="firstName" type="xsd:string" />
          <xsd:element name="lastName" type="xsd:string" />
          <xsd:element name="email" type="xsd:string" />
          <xsd:element name="mobile" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
      
      
      <xsd:element name="TaxiBookingResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="status" type="xsd:string" />
            <xsd:element name="customerID" type="xsd:string" />
            <xsd:element name="taxiID" type="xsd:string" />
            <xsd:element name="arrivalTime" type="xsd:string" />
            <xsd:element name="taxi" type="tns:taxiType" />   
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      
      
      <xsd:element name="TransportResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="status" type="xsd:string" />
            <xsd:element name="taxiID" type="xsd:string" />
            <xsd:element name="customerID" type="xsd:string" />
            <xsd:element name="taxi" type="tns:taxiType" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      
      
      <xsd:element name="TaxiBookingFault">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="status" type="xsd:string" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    
    </schema>
          
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:tns="http://www.taxiserviceprovider.eu/transmitter/types"
      targetNamespace="http://www.taxiserviceprovider.eu/transmitter/types"
      elementFormDefault="qualified" attributeFormDefault="unqualified">
    
      
    
      
      <xsd:complexType name="locationType">
        <xsd:sequence>
          <xsd:element name="latitude" type="xsd:string" />
          <xsd:element name="longitude" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
      
      <xsd:complexType name="taxiType">
        <xsd:sequence>
          <xsd:element name="firstName" type="xsd:string" />
          <xsd:element name="lastName" type="xsd:string" />
          <xsd:element name="email" type="xsd:string" />
          <xsd:element name="mobile" type="xsd:string" />
          <xsd:element name="location" type="tns:locationType" />
        </xsd:sequence>
      </xsd:complexType>
      
      <xsd:complexType name="customerType">
        <xsd:sequence>
          <xsd:element name="phone" type="xsd:string" />
          <xsd:element name="email" type="xsd:string" />
          <xsd:element name="messenger" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
    
    
      
      <xsd:element name="TransportRequest">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="taxiID" type="xsd:string" />
            <xsd:element name="customerID" type="xsd:string" />
            <xsd:element name="pickupLocation" type="xsd:string" />
            <xsd:element name="dropoffLocation" type="xsd:string" />
            <xsd:element name="taxi" type="tns:taxiType" />
            <xsd:element name="customer" type="tns:customerType" />
            <xsd:element name="tenantId" type="xsd:string" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      
      
      <xsd:element name="TransportConfirmation">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="status" type="xsd:string" />
            <xsd:element name="taxiID" type="xsd:string" />
            <xsd:element name="customerID" type="xsd:string" />
            <xsd:element name="taxi" type="tns:taxiType" />
            <xsd:element name="tenantId" type="xsd:string" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      
    </schema>
  </types>


  
  <message name="TransportRequestMessage">
    <part name="payload" element="types:TransportRequest" />
  </message>
  <message name="TransportResponseMessage">
    <part name="payload" element="tsptns:TransportResponse" />
  </message>
  <message name="TransportConfirmationMessage">
    <part name="payload" element="types:TransportConfirmation" />
  </message>


  
  <portType name="TaxiTransmitter">
    <operation name="orderTransport">
      <input message="tns:TransportRequestMessage" />
    </operation>
    <operation name="confirmTransport">
      <input message="tns:TransportConfirmationMessage" />
    </operation>
  </portType>


  
  <plnk:partnerLinkType name="TaxiTransmitterPLT">
    <plnk:role name="TaxiTransmitterProvider" portType="tns:TaxiTransmitter"
/>
  </plnk:partnerLinkType>
  
  
  
  <binding name="TaxiTransmitterSOAP" type="tns:TaxiTransmitter">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
    <operation name="orderTransport">
      <soap:operation
soapAction="http://www.taxiserviceprovider.eu/transmitter/orderTransport" />
      <input>
        <soap:body use="literal" />
      </input>
    </operation>
    <operation name="confirmTransport">
      <soap:operation
soapAction="http://www.taxiserviceprovider.eu/transmitter/confirmTransport"
/>
      <input>
        <soap:body use="literal" />
      </input>
    </operation>
  </binding>


  
  <service name="TaxiTransmitter">
    <port name="TaxiTransmitterSOAP" binding="tns:TaxiTransmitterSOAP">
      <soap:address
       
location="https://0.0.0.0:8194/TaxiTransmitter/services/TaxiTransmitterSOAP"
/>
    </port>
  </service>

</definitions>

I'm using ServiceMix 4.x.x. 
Thanks very much in advance.








--
View this message in context: http://servicemix.396122.n5.nabble.com/CXF-BC-with-SSL-Port-8194-is-configured-with-wrong-protocol-tp5717343.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Mime
View raw message