I get something like this
import javax.ws.rs.GET;
import javax.ws.rs.Path;
public class xxx
{
@GET
@Path(value = "path1")
public Response m1(@QueryParam(value = "a") String a)
{
...
}
@GET
@Path(value = "path2")
public Response m2(@QueryParam(value = "b") String b)
{
...
}
}
With restEasy I get HTTP Status 404 - Could not find resource for relative every time when i try to get path1 or path2 For ex http://someip:8080/myserv/services/path1?a=asd
Here http://docs.jboss.org/resteasy/docs/1.2.GA/userguide/html_single/#Using_Path I read
The @javax.ws.rs.Path annotation must exist on either the class and/or a resource method. If it exists on both the class and method, the relative path to the resource method is a concatenation of the class and method.