-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to get a normal object from javassist one?
PostPosted: Wed Dec 02, 2009 4:32 pm 
Newbie

Joined: Wed Dec 02, 2009 4:28 pm
Posts: 1
I'm trying to use Jax-RS to return entities from spring/hibernate - however, I get the following error:

Code:
Could not find MessageBodyWriter for response object of type: com.company.domain.Episode_$$_javassist_27 of media type: application/xml


However, returning an object of type com.company.domain.Episode is fine, so I assume Jax-B can't lookup the XML annotations as it's javassist. Is there any way to get the original class back?

Cheers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.