-
Notifications
You must be signed in to change notification settings - Fork 117
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
ContextFinder always load the JAXBContext from jaxb-runtime 2.3.3 #1466
Comments
lukasj
added a commit
to lukasj/jaxb-ri
that referenced
this issue
Feb 19, 2021
…b-runtime 2.3.3 Signed-off-by: Lukas Jungmann <[email protected]>
lukasj
added a commit
that referenced
this issue
Feb 19, 2021
Signed-off-by: Lukas Jungmann <[email protected]>
I believe #1514 here together with jakartaee/jaxb-api#177 and jakartaee/jaxb-api#176 on the API side are going to resolve this problem. |
lukasj
added a commit
to lukasj/jaxb-ri
that referenced
this issue
Feb 19, 2021
…xb-runtime 2.3.3 Signed-off-by: Lukas Jungmann <[email protected]>
lukasj
added a commit
that referenced
this issue
Feb 19, 2021
#1466: ContextFinder always load the JAXBContext from jaxb-runtime 2.3.3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After upgrading to jaxb-runtime 2.3.3, there is a new created provider file /META-INF/services/javax.xml.bind.JAXBContextFactory
to load and create JAXBContext implementation, and this provider file doesn't exist in previous version like jaxb-runtime-2.3.2 . ContextFinder follows this order to discover the service implementation:
As a consequence of this order, The JAXBContex from jaxb-runtime 2.3.3 will be always loaded if there is jaxb-runtime 2.3.3 under server's common lib and jaxb-runtime 2.3.2 lib under /WEB-INF/lib. For the servlet container , load class with this order like what Tomcat does won't work anymore :
The text was updated successfully, but these errors were encountered: