Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various JAXB issues #5568

Merged
merged 3 commits into from Nov 19, 2019
Merged

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Nov 18, 2019

Let's see what CI has to say as I can't build the main integration tests on my laptop anymore.

Fixes #5558

XmlRootElement is optional so we need to trigger the JAXB inclusion with
XmlType too.
This implementation is important and used by JAXB. We just need to
register proxies for the combinations of JAXB annotations and Locatable.
@gsmet
Copy link
Member Author

gsmet commented Nov 18, 2019

@geoand could you have a look. I'm very tempted to backport it.

Better reviewed commit per commit.

@geoand
Copy link
Contributor

geoand commented Nov 18, 2019

Sure, I'll check it out right away

@gsmet
Copy link
Member Author

gsmet commented Nov 18, 2019

@geoand btw, if you want the OP's test case to work, you have to remove all the occurrences of javax.xml.bind.context.factory from the code. There is one in a properties file and one in the Java code.

He added them when experimenting for solving the issue.

@geoand
Copy link
Contributor

geoand commented Nov 18, 2019

I'll do that

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes make sense and I also tested that it fixes the original issue. Nice one!

@gsmet
Copy link
Member Author

gsmet commented Nov 19, 2019

TCK failure is unrelated. Merging.

@gsmet gsmet merged commit a366ccd into quarkusio:master Nov 19, 2019
@gsmet gsmet removed the backport? label Nov 19, 2019
@gsmet gsmet added this to the 1.0.0.Final milestone Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory when using jaxb for native image
2 participants