Hello, Mohammad.
I have not yet looked at the links. But I can already give a bit of advice which may help.
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes The Http 404 error code means "Not Found". For example, if I were to hit coderanch with a misspelling like "coderanch.com/spiderman", I would get a 404 error. Some server was contacted, but did not have the resource (the rest of the URL) to return.
In the world of RESTful web services, this often means that you have misunderstood what URL your service will be exposing. To me, that is often a bit challenging. So have a look at this link as well.
REST With Java using Jersey, and that might help. I feel that there needs to be some way to have Jersey (or whatever) dump to the log what URLs are being exposed, much as EJBs will dump their JNDI names. I don't think this happens, but it would be nice. Responses?