无法添加RESTEasy WS

时间:2013-04-24 11:11:26

标签: java java-ee jboss resteasy

根据this手册,添加网络服务应该是小菜一碟,但我很难让它可以访问。 这是代码:

@Name("examineeController")
@Path("/examinee")
public class ExamineeController {

    @GET
    @Produces("text/plain")
    @Path("/setteststatus")
    private String updateProjectTestStatus(/) {
        return "OK";
    }

...然后收到404:

HTTP Status 404 - Could not find resource for relative : /examinee/setteststatus of full path: http://localhost:8080/am/seam/resource/rest/examinee/setteststatus

1 个答案:

答案 0 :(得分:1)

我史诗中最史诗的失败。 private String updateProjectTestStatus(/) private !!!它必须是public