During compilation i have an error: "annotation type not applicable to this kind of declaration". And details:
void someFunc(@XmlElement(required=true) MyClass someParam).
I use JDK 1.6.18 and @XmlElement not available in this version. I found that the main problem in JAXB (it's version). It was discussed here:
XmlElement annotation dissallowed with WebParam
Is it possible to replace the version of the JAXB implementation in Java JRE 1.6 SE?.
I updated JAXB in JDK by using endorsed method ($JAVA_HOME/lib/endorsed), but it still not work.
Q:
1. How i can be convinced that compiler use updated version of JAXB?
2. What else there can be incorrectness reasons?