camel cxf component as client results in 403 Forbidden
Issue
-
After initial reboot of the fuse container, we are able to successfully submit a webservice request using the camel component as a ws client. However on subsequent requests we get a 403 Forbidden error. We have done tcp trace dumps and we can see there is no traffic leaving linux host to the destination IP / port. Resetting the fuse server allows us to execute a single request before the problem starts again.
-
We have tried defining a proxy using
-Dhttp.proxyHostbut the issue persists. -
We define our camel endpoint as:
cxf://http://${host}:${anotherHost.port}/someContext/url-pattern?dataFormat=MESSAGE
- We have also tried various http-conf config as a global spring bean as:
<http-conf:conduit name="*.http-conduit">
<http-conf:client Connection="close" / "Keep-Alive"
MaxRetransmits="1"
AllowChunking="true" / "false"
CacheControl="no-cache" / not set
AutoRedirect="false" / "true"
ProxyServer="someProxyService_Address"
ProxyServerPort="8080"></http>
</http-conf:conduit>
- We are getting the 403 Forbidden Error code. What needs to be done and how do we fix this ?
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Camel
- Apache CXF
- Maven
- camel-cxf Component
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.