I have several Web Services that I have annotated with JAX-WS annotations.
I would like to expose the same functionality as Rest services using
Jersey's JAX-RS annotations. I've noticed that everything works great until
I annotate a method parameter with a @WebParam annotation, as in the
following:
@Path("saveRequest")
@POST
@WebMethod
@WebResult(name="request")
public FileRequest saveRequest(@WebParam(name="request") FileRequest
request) {
// code removed.
}
When I deploy to GlassFish, Jersey issues the following complaint:
java.lang.IllegalStateException: ContainerBase.addChild: start:
LifecycleException: com.sun.jersey.api.container.ContainerException:
Method, public com.pinnacol.cms.entity.FileRequest
com.pinnacol.cms.service.RestfulEndpoint.saveRequest(com.pinnacol.cms.entity.FileRequest),
annotated with POST of resource, class
com.pinnacol.cms.service.RestfulEndpoint, is not recognized as valid Java
method annotated with @HttpMethod.
If I remove the @WebParam annotation, everything works fine.
Is this a bug with the way Jersey processes the annotations?
Steve