Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Should be @Path("/sampproj"), i.e. you should add a forward slash Commented Sep 10, 2016 at 11:04
  • Also, since you have defined @PathParam("uservalue"), change @Path("/uservalue") to @Path("/uservalue/${uservalue}") and invoke URL like this: localhost:8081/SampleRS/rest/sampproj/uservalue/me. Assuming the context is indeed SampleRS. Commented Sep 10, 2016 at 11:11
  • Ori - made the changes you suggested and replaced with teh new war file still not working. How do I verify the context you mentioned? Commented Sep 10, 2016 at 12:31
  • the dir is apache-tomcat-8.5.5\webapps\WSwebapp\.. so tried localhost:8081/WSwebapp/rest/sampproj/uservalue/me and localhost:8081/WSwebapp/rest/SampleRS/sampproj/uservalue/me - both did not work Commented Sep 10, 2016 at 12:38
  • If you have WSwebapp dir under webapps, the URL should indeed be localhost:8081/WSwebapp/rest/sampproj/uservalue/me. Without any further info such as logs, it's hard to say what's going on wrong. Commented Sep 10, 2016 at 12:48