Bonjour,

j'ai un schéma xsd et j'utilise JAXB pour générer ces classe. Mon problème, c'est que je souhaiterais que toutes mes classes générée héritent d'une classe déjà créé. J'utilise donc un fichier de binding mais cela provoque une erreur à la génération:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
<bindings schemaLocation="monSchema.xsd" xmlns="http://java.sun.com/xml/ns/jaxb" version="2.1">
    <globalBindings>
        <superClass name="monPackage.MaClasse" />
    </globalBindings>
</bindings>
erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
[com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
com.sun.xml.internal.bind.api.impl.NameConverter est une interface et JAXB ne peut pas gérer les interfaces.
	this problem is related to the following location:
		at com.sun.xml.internal.bind.api.impl.NameConverter
		at public com.sun.xml.internal.bind.api.impl.NameConverter com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.nameConverter
		at com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding
]