My question looks like this:
it's kind of hard to explain because so many forums are handling this kind of problem but none of the answers does the trick for me.

I am using java and i want to build a restful service. I am using this:

```
URI uri = new URIBuilder()
                .setScheme("http")
                .setHost("localhost")
                .setPort(8080)
                .setPath("/search")
                .setParameter("first", "hello")
                .setParameter("second", "world,out")
                .setParameter("third", "there")
                .build();

```

What i get as URI is = 
<http://localhost:8081/search?first=hello&second=world%2Cout&third=there>

So and now i want to access the this data inside the URI like this:

```
@GET
@Path("search/")
@Produces(MediaType.TEXT_PLAIN)
public String test(@PathParam("first") String first, @PathParam("second") String second,@PathParam("third") String third) {
    return first+second+third;
}

```

But all i get is : Failed : HTTP error code : 404

So i think my handler for this request is not the way it should be. I tried so many different things but no way.

I hope somebody can explain me how to access the data in the right way.
thanks for any help.

EDIT: THIS is my controller :

```
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
          context.setContextPath("/");

          Server jettyServer = new Server(8081);
          jettyServer.setHandler(context);

          ServletHolder jerseyServlet = context.addServlet(
               org.glassfish.jersey.servlet.ServletContainer.class, "/*");
          jerseyServlet.setInitOrder(0);

          jerseyServlet.setInitParameter(
             "jersey.config.server.provider.classnames",
             RestfulFarmingGameService.class.getCanonicalName());

```

Working with jetty and jersey. Thats all i've got.