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
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply 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.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Couldn't find JAX-B element for class java.lang.String error on REST method
 
Similar Threads
Jersey Response issue driving me batty!
Can't deploy EJB jar to Glassfish
Returning a String from Server (REST) and getting Errors..
Netbeans 6.8M1 and JAX-RS using Jersey problems
Glassfish deployment issues