Bonjour,

J'ai crée un schéma qui définis plusieurs objets. Tous ces objets existent déjà, leurs classes ont été écrites auparavant et ils possèdent des méthodes et propriétés non prises en comptes dans mon schéma et étendent d'autres classes.

Je voudrais pouvoir "marshaller" (et par après "unmarshaller") mes objets mais j'obtiens l'exception suivante en voulant "marshaller" un objet qui étend JCheckBox:
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException : 28 counts of IllegalAnnotationExceptions
javax.swing.Action is an interface, and JAXB can't handle interfaces.
this problem is related to the following location :
at javax.swing.action
at public javax.swing.Action javax.swing.AbstractButton.getAction()
at javax.swing.AbstractButton
at javax.swing.JToggleButton
at javax.swing.JCheckBox
at be.moi.monpackage.MonCheckboxComponent...
Y à t'il un moyen d'utiliser JAXB sur des classes non générées ?

Merci