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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by tam wei, 1 year ago
resource, class io.swagger.jaxrs.listing.AcceptHeaderApiListingResource, is not recognized as valid Java method annotated with @HttpMethod.
via 2partsmagic.com by Unknown author, 1 year ago
Method, public void com.cmc.facts.rest.HelloWorldResource.getAccountHTML(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException,javax.servlet.ServletException, annotated with GET of resource, class com.cmc.facts.rest.HelloWorldResource, is not recognized as valid Java method annotated with @HttpMethod.
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.(ResourceHttpMethod.java:92)
at com.sun.jersey.server.impl.model.method.ResourceHttpMethod.(ResourceHttpMethod.java:69)
at com.sun.jersey.server.impl.model.method.ResourceHttpMethod.(ResourceHttpMethod.java:61)
at com.sun.jersey.server.impl.model.ResourceClass.processMethods(ResourceClass.java:311)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.