I am writing my first REST program using Jersey 2.22 and Glassfish 4.While running with URI in the browser, I am getting 404 exception. When I debug, I can reach my resource but not sure why '404 Not found exception' is generated. I am trying to fix the issue but not succeeded so seeking your help.
Once again would like to Thank you as it is working after @GET annotate. But this is annoying me, because I see many of 'Hello World' / 'Start up' examples where they did`t mention @GET annotate (even they did`t mention @Path to the service resource(method)). I did`t even read @GET is mandatory. How can we fix this kind of issues since I am trying to fix it since six days?