1

我正在开发一个 Java Web 项目,它使用 NetBeans 的自动机制从实体类(NetBeans 7.2,服务器 GlassFish 3.1.2)创建 RESTful Web 服务。当我创建具有复合主键的实体类时,会创建两个类:EntityClassand ,用andEntityClassPK注释。我尝试从资源中使用它。@Embeddable@EmbeddedIdGETREMOVE REST

应用程序部署正常,但是当我在 NetBeans 中尝试操作"Test RESTful Web Services"时,WADL 无法打开并附加此 server.log:

SEVERE: The following errors and warnings have been detected with resource and/or provider classes: SEVERE: Missing dependency for method public void service.ColocacionesbyMadFacadeREST.remove(entity.ColocacionesbyMadPK) at parameter at index 0 
SEVERE: Method, public void service.ColocacionesbyMadFacadeREST.remove(entity.ColocacionesbyMadPK), annotated with DELETE of resource, class service.ColocacionesbyMadFacadeREST, is not recognized as valid resource method. 
SEVERE: Missing dependency for method public entity.ColocacionesbyMad service.ColocacionesbyMadFacadeREST.find(entity.ColocacionesbyMadPK) at parameter at index 0 
SEVERE: Method, public entity.ColocacionesbyMad service.ColocacionesbyMadFacadeREST.find(entity.ColocacionesbyMadPK), annotated with GET of resource, class service.ColocacionesbyMadFacadeREST, is not recognized as valid resource method.

任何想法??谢谢!!

4

0 回答 0