As pointed out in the comments, NetBeans 7.2 implements the default configuration for RESTFul web services, which is different from previous versions. This standard configuration may be overridden when creating the web service. After creating with the default settings, you will no longer be able to use the wizard (the configuration selection from the context menu is inactive).
Therefore, to view / edit RESTFul paths, you need to directly edit the automatically generated Java classes:
- The ApplicationConfig.java class contains the main RESTFul path in the annotation
@javax.ws.rs.ApplicationPath("webresources") - Each autogenerated
XYZFacadeREST class contains a path relative to each entity class in the @Path("entity.XYZ") annotation @Path("entity.XYZ")
If you want to have the same paths as in the tutorial, you need to replace webresources with resources (point 1) and the path at point 2 with dukesAge .
source share