| 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.
|
 |
 |
|
|
subject: Couldn't find JAX-B element for class java.lang.String error on REST method
|
|
|