-
1. Re: camel-cxf problem with '404: Not Found' exception
njiang Jul 9, 2010 8:37 PM (in response to rafal.janik)Maybe it's just a configure issue.
Can I have a look at your route configure?
-
2. Re: camel-cxf problem with '404: Not Found' exception
rafal.janik Jul 12, 2010 3:11 AM (in response to njiang)-
and it works,
with the line <cxf:rsServer id="rsServer" address="http://localhost:9003/something" doesn't work.
-
3. Re: camel-cxf problem with '404: Not Found' exception
jsvaughan Aug 13, 2010 8:57 AM (in response to rafal.janik)Did you ever get this sorted out? I have a very similar issue.
Given the following setup, with a /client and a /server, I expect a call to http://localhost:8181/cxf/server/layerservice/layers to be sent via http to http://localhost:8181/cxf/client/layerservice/layers but instead it gets sent to http://localhost:8181/cxf/itf/client/server/layerservice/layers - it keeps the original *server* too and I get a 404.
I've wasted hours fiddling around with this and I think have just found a bug about it:
https://issues.apache.org/activemq/browse/CAMEL-2575
Here is my config:
-
4. Re: camel-cxf problem with '404: Not Found' exception
jsvaughan Aug 13, 2010 10:44 AM (in response to jsvaughan)that bug is fixed in camel 2.3 so you could try upgrading fuse (there are some instructions here: http://www.andrejkoelewijn.com/wp/2010/06/15/upgrade-apache-camel-in-servicemix-to-version-2-3-0/) although I then ran into an issue where it then wouldn't recognise the cxfrs config. Possibly something else needed to be updated. I decided to live with the workaround of prefixing my jaxrs server with the client and server info; it's a mess but it works, and wait for the fuse release that contains 2.3 to try it again.
<jaxrs:server id="layerService" address="/client/s"
<cxf:rsServer id="rsServer" address="/s"
<cxf:rsClient id="rsClient" address="http://localhost:8181/cxf/client"
-
5. Re: camel-cxf problem with '404: Not Found' exception
rafal.janik Oct 15, 2010 4:47 AM (in response to jsvaughan)thanks !