Error "Subresource for target class has no jax-rs annotations" when trying to access a JAX-RS method

Solution Verified - Updated -

Issue

We have a method in a JAX-RS resource which is using @Path annotation. When we try to access this method URI, we have the following error:

Subresource for target class has no jax-rs annotations

Environment

  • JBoss Enterprise Application Platform
    • 5.x
    • 6.x
  • RESTEasy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.