2013-04-24 23 views
0

根據this手冊,它應該是小菜一碟來添加一個Web服務,但我努力使其可訪問。 下面是代碼:無法添加RESTEasy WS

@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

我史詩中最史詩般的失敗。 private String updateProjectTestStatus(/)private !!!它必須是public