|How can I get JAXB working in R-2020-12? [message #1836078]
|Sun, 20 December 2020 00:42
| Steve Vestal
Registered: March 2013
What does it take to update a plugin that uses JAXB to the latest Eclipse? I've been trying to get this to work. Here is my current configuration.
Eclipse rcp-2020-12 on Windows 10
I have a plugin project that imports things from javax.xml.bind. The jakarta.xml.bind plugin is available in that Eclipse configuration, so I added it to my required plugins in the manifest.
I searched for org.glassfish.jaxb, downloaded jaxb-runtime-2.3.2.jar, dropped it into a folder in my project, and added that to the runtime Classpath in the manifest. At this point, Eclipse sees com.sun.xml.bind.v2, at least enough to let me see it in the Exported Packages search for the manifest.
When I Run As Eclipse Application, everything seems to work fine (meaning it sees all the other stuff on the Classpath) until the code first tries to marshal something, specifically when it calls JAXBContext.newInstance. I get an exception that an implementation of JAXB-API has not been found, with a linked exception that com.sun.xml.bind.v2.ContextFactory cannot be found. I looked inside jaxb-runtime-2.3.2.jar, the class file appears to be in there.
What do I need to do?
Powered by FUDForum
. Page generated in 0.01940 seconds