Reputation: 3079
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??
Upvotes: 1
Views: 144
Reputation: 149017
You need to ensure that the EclipseLink JAXB (MOXy) jars are configured correctly and that you have a file called jaxb.properties
in the same package as your domain model with the following entry:
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory
For More Information
Upvotes: 1