How can I get JAXB working in R-2020-12? [message #1836078] |
Sun, 20 December 2020 00:42 ![Go to next message Go to next message](https://www.eclipse.org/forums/theme/Solstice/images/down.png) |
Steve Vestal![Friend of Eclipse Friend](https://www.eclipse.org/donate/web-api/friends_decorator.php?email=steve.vestal%40adventiumlabs.com) Messages: 37 Registered: March 2013 |
Member |
|
|
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.01920 seconds