• Post Reply Bookmark Topic Watch Topic
  • New Topic

404 in Jersey/Struts application  RSS feed

Ranch Hand
Posts: 67
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use Jersey to provide a simple web service for my struts application.

When I call the client action I get the following error

    Message: GET http://localhost:8080/shumer/rest/employee/get returned a response status of 404

servlet declaration in web.xml

Server resource

Client action

I have tried this with and without the `/get` and the end of the resource url, and with and without a leading `/` in the EmployeeResource @Path annotation. My guess is that there is somewhere I have to declare where my resources are lcoated at in order for the Jersey servlet to handle them, but I can't figure it out. A point in the right direction would be much appreciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!