ClassCastException: JAXBContextImp to JAXBContext With Woodstox and NetBeans
If you are getting
1234567
1 2 3 4 5 6 7
<span class='line'>java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
</span><span class='line'> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:145)
</span><span class='line'> at javax.xml.bind.ContextFinder.find(ContextFinder.java:277)
</span><span class='line'> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
</span><span class='line'> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
</span><span class='line'> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
</span><span class='line'> at com.rubenlaguna.en4j.mainmodule.ImportEvernoteFile.actionPerformed(ImportEvernoteFile.java:65)</span>
and you are using woodstox be sure to check the DevFaqModuleCCE. This could happen when you have Netbeans Platform Application with a module containing woodstox but also including JAXB 2.1 in the module dependencies for the application.