I am running on JBoss 4.2.3.GA with RestEasy 1.1.GA

My problem is that when I return an object from my resource method, it goes 
thru the Jettison provider and I don't get a full result marshaled back.   For 
example, I have an object name PposTerminalBean and the method Produces 
"application/json".  I don't get any errors but the result I get is


That object is annotated as

@XmlRootElement(name = "PposTerminalBean")
public class PposTerminalBean extends TerminalBean
. . .

I get the similar results if it Produces("application/xml") - just the 
XmlRootElement name gets written.

The ejb service interface is annotated as:

   public PposTerminalBean findByPrimaryKey(@PathParam("id") long id ) throws 

There is not Jackson provider as mentioned in the User Guide to contribute to 
marshalling problems.  I also did a small test of marshalling that object using 
JAXB 2.0 and the object marshalled correct, fully with all annotated fields.

I log the object to my server log coming out of the ejb method and the object 
is 'fully' populated.  The object looks correct going into the marshalling code 
based on some debugging of the resteasy code that I did.

Am I missing something?

Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
Resteasy-users mailing list

Reply via email to