5 Replies Latest reply on Oct 15, 2010 4:47 AM by rafal.janik

    camel-cxf problem with '404: Not Found' exception

    rafal.janik

      Hi,

       

      I was trying to expose my bean as a rest service using cxfrs based on:

       

      http://camel.apache.org/cxfrs.html

       

      and there was a following problem (between the rsServer and rsClient):

       

      Caused by: java.io.IOException: IOException invoking http://localhost:9002/rest/route/documentService/getDocument/1234: HTTP response '404: Not Found'  

       

      The way to solve this problem was to remove "route"

       

      before:

       

        <cxf:rsServer id="rsServer" address="http://localhost:9000/route"

         serviceClass="some.package.TestClass"/>

       

      after:

       

         <cxf:rsServer id="rsServer" address="http://localhost:9000/"

         serviceClass="some.package.TestClass"/>

       

      There are two possibilities explaining this situations -

       

      1. I'm doing something wrong

      2. There is a some kind of bug

       

      Any ideas?

       

       

      regards

       

      rafal