• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error using RESTful Service

 
Alissa Horner
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a Web service that uses REST. When I run my Web service and I get an error that says, "No root resource matching request path", when I go to this URL: http://localhost:9000/helloworld/

What could be the problem?

Here is a portion of the code:

@Path("/helloworld/")
public class HelloWorldResource {
public static final String CLICHED_MESSAGE = "Hello World!";

@GET
@Produces("text/plain")
public String getHello() {
return CLICHED_MESSAGE;
}
 
Ivan Jozsef Balazs
Rancher
Posts: 992
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What URL is your application bound to?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Which REST web service toolkit are you using?
2. What is the host server?
3. Has this installation ever worked?

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!