• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mikael Gyth
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solution was to define the returning entity object in the namedQuery.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic