Hello I have created Protege ontology and imported in Jena. I want to put
logic in Rest Webservices. I have one file Hello.java below:
________________________________________________
package webserv;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/hello")
public class Hello {
// This method is called if HTML and XML is not requested
@GET
@Produces(MediaType.TEXT_PLAIN)
public String sayPlainTextHello() {
return "Hello Jersey Plain";
}
}
_____________________________________________________-
Another class index.html which only contains
<a href="rest/hello">Click Here</a>
______________________________________________________
And of course web.xml where I have add <servlet> </servlet> code too. I
also copied all the jars inside lib folder but it gives me error
"Requested Resource is not available".
What can be the possible error?