This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JAXB can't handle interfaces. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB can Watch "JAXB can New topic
Author

JAXB can't handle interfaces.

El El
Greenhorn

Joined: Aug 14, 2007
Posts: 1
Hi,

I have a problem with jaxb and I was wondering if someone came across with it:
I have a class (class Car) that implements an interface (interface CarIfc), and I want to be able to marshall and unmarshall the Car class.
when activating the JaxbMarshaller, I get the following error:
Car is an interface, and JAXB can't handle interfaces.
do you have any idea how can I use interfaces in JAXB?
If not, is there any other XML framework that handles interfaces?

thanks in advance
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"El El", please check your private messages for an important moderator message. (To see your private messages, click on the "get_profile" icon, that's the first of the little icons at the top of your post, and go from there.)
 
 
subject: JAXB can't handle interfaces.
 
Similar Threads
Multiple Inheritance - Reusability
Query on Inheritance
multiple inheritance
JAXB Help
JAXB: transforming beans into XML