Reputation: 2173
According to this manual it should be piece of cake to add a web service, but I'm struggling to make it accessible. Here is the code:
@Name("examineeController")
@Path("/examinee")
public class ExamineeController {
@GET
@Produces("text/plain")
@Path("/setteststatus")
private String updateProjectTestStatus(/) {
return "OK";
}
...and receive 404 like that:
HTTP Status 404 - Could not find resource for relative : /examinee/setteststatus of full path: http://localhost:8080/am/seam/resource/rest/examinee/setteststatus
Upvotes: 0
Views: 62
Reputation: 2173
The most epic of my epic fails. private String updateProjectTestStatus(/)
private
!!! It has to be public
!
Upvotes: 1