CXFRS rest service on same port as CXF SOAP Services

Solution Verified - Updated -

Issue

We have SOAP-services via cxf available on Fuse/Fabric and configured on Pax Web port 8282.

We also have a CXFRS Restful service configured as:

<cxf:rsServer id="rsServer" 
                address="http://0.0.0.0:8484/customerservice" 
                serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService" 
                loggingFeatureEnabled="true">
    <cxf:providers>
      <ref component-id="jsonProvider" />
    </cxf:providers>
</cxf:rsServer>

But we would like to see the CXFRS Restful services available on the same port to minimize the number of virtual IPs to create, remember, and maintain.

If I configure the CXFRS service to use the same port as the CXF Soap services, there are no errors reported when the bundle(s) are installed and the camel context(s)/routes started. However, at run time, trying to access the Restful services gives an HTTP 404 - Page Not Found. The Soap services are unaffected.

Environment

  • JBoss Fuse
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.