I have this huge java class file with nested class coded everything in there.
After I got everything working the way I wanted, having the XML output I need… I split the nested class out to their own class file.
However, when I run the code, all of my @XmlPath annotation are ignored. Only the native ones from javax.xml.bind.annotation.* are still in effect…
Ok.. wtf, so I put all the nested classes back to the way it was, and ran the code again, and none of the @XmlPath (in fact none of the MOXy stuff works) annotations works…!
I tried to remove the jar, close eclipse, reopen, and re-add the jar back in, still no go.
How can I get EclipseLink MOXy to work again??
You need to ensure that the EclipseLink JAXB (MOXy) jars are configured correctly and that you have a file called
jaxb.propertiesin the same package as your domain model with the following entry:For More Information