Why does JAXB say "xxx is an interface, and JAXB can't handle interfaces". Even though the generated class is not an inerface
===

I used JAXB to bind my xsd's and then tried creating the JAXBContext 

JAXBContext jaxbContext = JAXBContext.newInstance("my package name");

But JAXB gives 180 IllegalAnnotationsException.

Most of the exceptions have the following messages :

1. XXX is an interface, and JAXB can't handle interfaces
2. XXX does not have a no-arg default constructor
3. @XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.

When I look at the classes generated none of them are interfaces and I can't understand why JAXB is interpreting them as interfaces.