Hi Paul,
I got the following exception when executing the RESTful services
generated from entity classes:
Caused by: com.sun.ws.rest.api.container.ContainerException: Method,
public x.service.CustomersResource
x.service.DiscountCodeResource.getCustomersResource(java.lang.Character),
annotated with URI template /customers(/.*)? of resource, class
x.service.DiscountCodeResource, is not recognized as valid Java method
annotated with @URITemplate.
at
com.sun.ws.rest.impl.model.node.NodeDispatcherFactory.create(NodeDispatcherFactory.java:54)
at
com.sun.ws.rest.impl.model.ResourceClass.processSubResourceLocators(ResourceClass.java:161)
at
com.sun.ws.rest.impl.model.ResourceClass.<init>(ResourceClass.java:91)
at
com.sun.ws.rest.impl.model.RootResourceClass.getResourceClass(RootResourceClass.java:73)
at
com.sun.ws.rest.impl.application.WebApplicationImpl.getResourceClass(WebApplicationImpl.java:127)
at
com.sun.ws.rest.impl.application.WebApplicationContext.dispatchTo(WebApplicationContext.java:110)
at
com.sun.ws.rest.impl.model.node.NodeDispatcher.dispatch(NodeDispatcher.java:58)
The DiscountCodeResource does not have an URITemplate declared on the
class. This worked in 0.2.
I thought a class is considered a RESTful resource if it contains either
URITemplate or HttpMethod annotations,
Peter