com.sun.jersey.api.container.ContainerException: Method, public javax.ws.rs.core.Response io.swagger.jaxrs.listing.AcceptHeaderApiListingResource.getListingYaml(javax.ws.rs.core.Application,javax.servlet.ServletConfig,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), annotated with GET of resource, class io.swagger.jaxrs.listing.AcceptHeaderApiListingResource, is not recognized as valid Java method annotated with @HttpMethod.

Google Groups | tam wei | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    integrate swagger into Jersey for auto generation of Swagger definition

    Google Groups | 6 months ago | tam wei
    com.sun.jersey.api.container.ContainerException: Method, public javax.ws.rs.core.Response io.swagger.jaxrs.listing.AcceptHeaderApiListingResource.getListingYaml(javax.ws.rs.core.Application,javax.servlet.ServletConfig,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), annotated with GET of resource, class io.swagger.jaxrs.listing.AcceptHeaderApiListingResource, is not recognized as valid Java method annotated with @HttpMethod.

    Root Cause Analysis

    1. com.sun.jersey.api.container.ContainerException

      Method, public javax.ws.rs.core.Response io.swagger.jaxrs.listing.AcceptHeaderApiListingResource.getListingYaml(javax.ws.rs.core.Application,javax.servlet.ServletConfig,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), annotated with GET of resource, class io.swagger.jaxrs.listing.AcceptHeaderApiListingResource, is not recognized as valid Java method annotated with @HttpMethod.

      at com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>()
    2. Jersey
      ResourceClass.<init>
      1. com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)
      2. com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:69)
      3. com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:61)
      4. com.sun.jersey.server.impl.model.ResourceClass.processMethods(ResourceClass.java:311)
      5. com.sun.jersey.server.impl.model.ResourceClass.<init>(ResourceClass.java:133)
      5 frames