Bonjour,
jars utilisés: jaxb-api 2.2 et jaxb-impl 2.1.12
après avoir résolu le problème avec l'ordre des balises (cas de classe à sérialiser héritant d'autres classes) avec @XmlType(propOrder et @xmlTransient (voir : http://www.developpez.net/forums/d13...ionsexception/)
suite à la livraison sur un serveur Weblogic v10, j'ai eu le même message d'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 Property id appears in @XmlType.propOrder, but no such property exists. Maybe you meant status? this problem is related to the following location: at export.xml.aveclist.ElementCompose
en cherchant un peu on a trouvé que la version jaxb embarqué par weblo10 est la jaxb-api 2.0 et avec cette version on a cette erreur: (The annotation @XmlTransient is disallowed for this location)
La solution était donc de dire à Weblogic quel jar utilisé concernant jaxb et je l'ai trouvé ici: http://pic.dhe.ibm.com/infocenter/sp...stall_jaxb.htm
donc on a créé le dossier dans lequel on a rajouté les jar et changé le JAVA_OPTIONS dans le shell de lancement du domaine.Oracle WebLogic Server 10 (10.3.0)
Create a new folder on the local file system (for example, /opt/Oracle/WL10/wlserver_10.0/domain1/jaxb-jars).
Copy the following three files to the new folder you created in the previous step. Ensure these are the only files in the new folder. Do not copy them to the Oracle WebLogic Server [domain]/lib.
• jaxb-api.jar (pour mon cas ->2.2)
• jaxb-impl.jar (pour mon cas -> 2.1.12)
+ activation-1.1.jar et stax-api-1.0-2.jar qui sont tirés par jaxb-api (on peut voir ça dans le pom de jaxb-api)
Add the following java.endorsed.dirsJava system property to the JAVA_OPTIONS section of the [domain]/bin/setDomainEnv.cmd script. Set the value to the fully qualified name of the new folder you created containing the three .jar files.
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.endorsed.dirs=/opt/Oracle/WL10/wlserver_10.0/domain1/jaxb-jars"
espérant que cela n'aura pas d'impact sur d'autres parties de l'appli
Partager