I’m creating a RESTful Webservice with JAVA and netbeans. The Webservice outputs correct JSON data BUT the problem comes in when I want to read a variable I sent via GET when calling the webservice from the browser.
When I try to output the variable that I just sent with GET, the WS gives back a NULL.
In addition , Glassfish server console outputs this :
- INFO: Couldn’t find JAX-B element for class java.lang.String
- INFO: Couldn’t find JAX-B element for class java.lang.String
- ….
- INFO: Couldn’t find JAX-B element for class java.lang.String
- INFO: Couldn’t find JAX-B element for class javax.ws.rs.core.Response
- INFO: Couldn’t find JAX-B element for class java.lang.String


Any help?
When using a @PathParam annotation you need to add the @Path annotation to the method declaration.