Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Project for Stable Jakarta EE APIs » How can I get JAXB working in R-2020-12?(Jakarta, JAXB, Java 11, Eclipse R-2020-12)
How can I get JAXB working in R-2020-12? [message #1836078] Sun, 20 December 2020 00:42 Go to next message
Steve Vestal is currently offline Steve VestalFriend
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?

Re: How can I get JAXB working in R-2020-12? [message #1836086 is a reply to message #1836078] Sun, 20 December 2020 11:09 Go to previous message
Steve Vestal is currently offline Steve VestalFriend
Messages: 37
Registered: March 2013
Member
Hmm, found this with more searching, it does seem to be somewhat broken...

https://www.eclipse.org/forums/index.php/t/1096601/
Goto Forum:
  


Current Time: Mon Mar 04 13:10:04 GMT 2024

Powered by FUDForum. Page generated in 0.01940 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top