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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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