Based on JAX-RS specification; @Path annotation is not mandatory on Resource classes. But many implementations seem to deviate from the specification.
But shouldn’t reference implementation adhere to the specification?
Resource classes are POJOs that have at least one method annotated with @Path or a request method designator.
UserDoc The @javax.ws.rs.Path annotation must exist on either the class and/or a resource method.
Implementation is broken in jboss-as-7.1.1.Final. @Path is mandatory at class level.
UserDoc The @javax.ws.rs.Path annotation must exist on either the class and/or a resource method.
Works as documented with wildfly-8.0.0.Final.
But seems to be broken with Tomcat 7. @Path is mandatory at class level. RESTEASY-1017
Documentation Root resource classes are POJOs (Plain Old Java Objects) that are annotated with @Path have at least one method annotated with @Path or a resource method designator annotation such as @GET, @PUT, @POST, @DELETE.