You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by GaganT <ga...@gmail.com> on 2016/03/10 01:02:49 UTC

Camel Rest DSL issue with fuse fabric

Hi,

I am doing a poc to expose rest ful services using camel rest dsl and
deploying them in a container on a fuse fabric profile. The example is based
out of camel-example-servlet-rest-blueprint project. my bluprint file is: 
blueprint.xml
<http://camel.465427.n5.nabble.com/file/n5778820/blueprint.xml>  

Example is simple and I am able to access rest services if I install the
bundle in standalone fuse. However, if I install the same bundle in a fuse
fabric container, it does not work and I always get http 404 error. I am
struggling with this for few days now. Has anyone managed to use rest-dsl
with fuse fabric? I would appreciate any help in this regard.

Thanks!
Gagan



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Rest-DSL-issue-with-fuse-fabric-tp5778820.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Rest DSL issue with fuse fabric

Posted by GaganT <ga...@gmail.com>.
As it turned out, I was not using the correct URL. The "contextPath" is not
part of actual URL to be used. So  in this example, i was trying to access
rest service as http://localhost:8181/optima/test/123 and I was getting
"Resource not found" error. The correct URL is
http://localhost:8181/test/123. Solution: Ignore contextPath of
restConfiguration in actual rest URL, is this is a bug?Thanks!Gagan 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Rest-DSL-issue-with-fuse-fabric-tp5778820p5779906.html
Sent from the Camel - Users mailing list archive at Nabble.com.