Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7870

The quickstart cannot work when using a gateway-http

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • jboss-fuse-6.3
    • Gateway
    • None
    • % %
    • Hide
      • Create a fabric environment.
      • Go to jboss-fuse-6.3.0.redhat-329/quickstarts/cxf/camel-cxf-contract-first/.
      • Build it using mvn fabric8:deploy.
      • Now start deploying in fabric environment using below commands.
        -- container-list
        -- container-create-child root gatewayContainer
        -- container-create-child root serviceContainer
        -- container-list
        -- container-add-profile serviceContainer quickstarts-cxf-camel.cxf.contract.first 
        -- container-add-profile gatewayContainer gateway-http 
        
      • Now using soap-ui, send following request to url: http://localhost:8183/cxf/contract_first_order/
        can get correct response.
         
        <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ord="http://order.camelinaction">
           <soapenv:Header/>
           <soapenv:Body>
              <ord:partName>123</ord:partName>
              <ord:amount>234</ord:amount>
              <ord:customerName>csp</ord:customerName>
           </soapenv:Body>
        </soapenv:Envelope>
        
      • Now send request to gateway-http using url http://localhost:9000/cxf/contract_first_order//
        In SoapUI's there is no response.
      Show
      Create a fabric environment. Go to jboss-fuse-6.3.0.redhat-329/quickstarts/cxf/camel-cxf-contract-first/. Build it using mvn fabric8:deploy. Now start deploying in fabric environment using below commands. -- container-list -- container-create-child root gatewayContainer -- container-create-child root serviceContainer -- container-list -- container-add-profile serviceContainer quickstarts-cxf-camel.cxf.contract.first -- container-add-profile gatewayContainer gateway-http Now using soap-ui, send following request to url: http://localhost:8183/cxf/contract_first_order/ can get correct response. <soapenv:Envelope xmlns:soapenv= "http: //schemas.xmlsoap.org/soap/envelope/" xmlns:ord= "http://order.camelinaction" > <soapenv:Header/> <soapenv:Body> <ord:partName>123</ord:partName> <ord:amount>234</ord:amount> <ord:customerName>csp</ord:customerName> </soapenv:Body> </soapenv:Envelope> Now send request to gateway-http using url http://localhost:9000/cxf/contract_first_order// In SoapUI's there is no response.

    Description

      I am using 6.3R6 to test the gateway http.
      using the quickstart jboss-fuse-6.3.0.redhat-329/quickstarts/cxf/camel-cxf-contract-first/
      but I found the httpgateway does not work. There is no response from http://localhost:9000/cxf/contract_first_order/

      in the httpgateway, log indicated:

      2018-03-20 15:18:05,915 | INFO  | entloop-thread-0 | HttpGatewayHandler               | 140 - io.fabric8.gateway-core - 1.2.0.redhat-630329-05 | Could not find matching proxy path for /cxf/contract_first_order/ from paths: [/cxf/contract_first_order//, /servlets/io.fabric8.fabric-maven-proxy/maven/download/, /servlets/io.fabric8.fabric-jolokia/jolokia/, /git/fabric/, /servlets/org.apache.cxf.cxf-rt-transports-http/cxf/, /servlets/io.fabric8.fabric-git-server/git/, /servlets/io.fabric8.fabric-maven-proxy/maven/upload/]
      

      the workaround is to change the address="/contract_first_order/" to address="/contract_first_order"

        <cxf:cxfEndpoint id="orderEndpoint"
                         address="/contract_first_order/"
                         serviceClass="camelinaction.order.OrderEndpoint"/>
      

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            rhn-support-xiwu Xiaohui Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: