|
From: Tim T. <tim...@gm...> - 2010-04-08 13:56:13
|
What is needed in JBoss 6 M2 in order to have the javax.ws.rs.Path
annotation scanned automatically in my war? I have the class below and
an index.jsp in a myapp.war file. I can see /myapp/index.jsp in the
browser, but I get 404 for /myapp/hello. Would could be missing?
/Tim
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@Path ("hello")
public class Hello {
@GET
public String world() {
return "world";
}
}
|