aspose file tools*
The moose likes Web Services and the fly likes Couldn't find JAX-B element for class java.lang.String error on REST method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Couldn Watch "Couldn New topic
Author

Couldn't find JAX-B element for class java.lang.String error on REST method

Mikael Gyth
Greenhorn

Joined: Sep 30, 2012
Posts: 7
Hello. I have a problem i can't seem to figure out.

I have a set of REST Methods, this is two of them:


The first one works just fine, the second one when I try to call it, I get this error:


And in Glassfish I get:


Can anyone please help me sort this out? Let me know if you need any aditional info.

Thanks in advance.

Edit: I know the parameters and the sql query doesn't make any sense in it's current state, I'v just been removing most of the query to get something i knew worked.
Mikael Gyth
Greenhorn

Joined: Sep 30, 2012
Posts: 7
Solution was to define the returning entity object in the namedQuery.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Couldn't find JAX-B element for class java.lang.String error on REST method