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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content